NativeScript / NativeScript/nativescript-cli
Getting error "PubNub call failed, check status for details"
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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
- Run tns preview --bundle
- Scan QR code from playground app
- app is not loading in mobile and getting above error on cmd
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with tns preview --bundle and scanning its QR code in the Playground app. Trace the PubNub timeout shown in the command output and determine why the preview app does not load; done means the preview completes successfully without the PubNub error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100