[PHP] BlackfireのHackプランで「You cannot profile non-local HTTP apps.」とメッセージが出る場合の対応

ヨメレバCSS
オリジナルCSS

 PHPのプロファイリングツールBlackfireのHackプラン(フリープラン)で実行したプロファイルを開いたときに出てきたエラーの対処法です。

スポンサーリンク
GoogleAdSence レクタングル(大)

「You cannot profile non-local HTTP apps.」のメッセージ

 blackfireコマンドを実行し、作成されたプロファイルを開いてみると

You cannot profile non-local HTTP apps.


Subscribe to Profiler or Return to Dashboard

と表示されて結果が出てこない場合です。

ローカルIP(プライベートIP)で接続する

 どうもフリープランは「ローカル環境」でしか動作させることができないみたいです。

 ただ「ローカル環境」の定義は何かわからない…と思っていたのですが、どうやら「接続するときのIPアドレスが外部に繋がっていないこと」みたい。

What does "non-local HTTP applications" mean?

When you create a profile on a free plan, Blackfire's servers will resolve the domain in the URL to an IP address. If the IP address is a public IP address, Blackfire's servers will attempt to open an HTTP(S) connection to the IP address. If there is an HTTP(S) response, Blackfire considers this to be a non-local HTTP application.

Hack Edition users cannot profile non-local HTTP applications

 なので、blackfire curlコマンドで指定していた接続先をローカルIP (192.168.1.10みたいなもの)に変更したら、動作しました。

スポンサーリンク
GoogleAdSence レクタングル(大)

シェアする

スポンサーリンク
GoogleAdSence レクタングル(大)