Skip to content

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

Open
@atulpandey34

Description

@atulpandey34

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infopreviewDescribes issues related to preview commandto-be-checkedIssues that might be resolved in a previous release and need to be tested or clarified further

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions