Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PubNubError: REST API request processing error, check status for details #395

Open
utopictown opened this issue Jul 30, 2024 · 2 comments
Open

Comments

@utopictown
Copy link

utopictown commented Jul 30, 2024

i got this from sentry report

PubNubError
REST API request processing error, check status for details

/static/js/1110.f5392ca0.chunk.js in R.toPubNubError at line 2:532490

/*! For license information please see 1110.f5392ca0.chunk.js.LICENSE.txt */
{snip} usCode,errorData:this.errorData}}toPubNubError(e,t){return new d(null!=t?t:this.message,this.toStatus(e))}}class x{constructor(e){this.confi {snip}

version:
"pubnub": "^8.2.4"

i dont know what caused this. can anyone help to debug this better?

feature request: is it possible to throw more useful message?

@parfeon
Copy link
Contributor

parfeon commented Jul 30, 2024

@utopictown thank you for reporting back.

Failure reason is part of error.status (Status) contains more information.

type Status = {   
  error: boolean
  category: StatusCategory
  operation?: RequestOperation
  statusCode: number
  errorData?: Error | Payload
  [p: string]: Payload | Error | undefined 
}

@utopictown
Copy link
Author

how do i check status for details? i dont know which part caused this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants