NativeScript / NativeScript/nativescript-cli

Getting error "PubNub call failed, check status for details"

オープン
#4,120 コメント 7 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

needs more info preview to-be-checked
主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.0.0
  • Cross-platform modules: 5.0.2
  • Android Runtime: 5.0.0
  • iOS Runtime: 5.0.0
  • Plugin(s):

Describe the bug
After running command tns preview --bundle and scanning the QR code from playground , the application is not loading. Getting below error in command prompt

Successfully synced changes for platform android.
Error: PubNub call failed, check status for details
at new PubNubError (C:\Users\apande72\AppData\Roaming\npm\node_modules\nativ
escript\node_modules\pubnub\lib\core\components\core\components\endpoint.js:8:31
)
at onResponse (C:\Users\apande72\AppData\Roaming\npm\node_modules\nativescri
pt\node_modules\pubnub\lib\core\components\core\components\endpoint.js:126:32)
at (C:\Users\apande72\AppData\Roaming\npm\node_modules\nativescr
ipt\node_modules\pubnub\lib\networking\modules\networking\modules\web-node.js:59
:17)
at Request.callback (C:\Users\apande72\AppData\Roaming\npm\node_modules\nati
vescript\node_modules\superagent\lib\node\index.js:728:3)
at RequestBase._timeoutError (C:\Users\apande72\AppData\Roaming\npm\node_mod
ules\nativescript\node_modules\superagent\lib\request-base.js:676:8)
at Timeout. (C:\Users\apande72\AppData\Roaming\npm\node_modules\n
ativescript\node_modules\superagent\lib\request-base.js:685:12)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
Error: PubNub call failed, check status for details
at new PubNubError (C:\Users\apande72\AppData\Roaming\npm\node_modules\nativ
escript\node_modules\pubnub\lib\core\components\core\components\endpoint.js:8:31
)
at onResponse (C:\Users\apande72\AppData\Roaming\npm\node_modules\nativescri
pt\node_modules\pubnub\lib\core\components\core\components\endpoint.js:126:32)
at (C:\Users\apande72\AppData\Roaming\npm\node_modules\nativescr
ipt\node_modules\pubnub\lib\networking\modules\networking\modules\web-node.js:59
:17)
at Request.callback (C:\Users\apande72\AppData\Roaming\npm\node_modules\nati
vescript\node_modules\superagent\lib\node\index.js:728:3)
at RequestBase._timeoutError (C:\Users\apande72\AppData\Roaming\npm\node_mod
ules\nativescript\node_modules\superagent\lib\request-base.js:676:8)
at Timeout. (C:\Users\apande72\AppData\Roaming\npm\node_modules\n
ativescript\node_modules\superagent\lib\request-base.js:685:12)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)

To Reproduce

  1. Run tns preview --bundle
  2. Scan QR code from playground app
  3. app is not loading in mobile and getting above error on cmd

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず tns preview --bundle で失敗を再現し、その QR コードを Playground アプリでスキャンします。コマンド出力に表示される PubNub のタイムアウトを追跡し、preview アプリが読み込まれない理由を特定します。PubNub エラーなしで preview が正常に完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
cli, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。