-
Hi, I'm sometimes having some issues with the API failing to login with a refresh token. I'm running the API with the same token on multiple servers and sometimes it breaks on a single server (I think Sony bans the IP). Unfortunately I can't really track that since the package doesn't return the error (only does a How is everyone handling errors like this? I just can't figure it out. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
As I figured I'm getting a 403 in that case but the error isn't handled:
Maybe I'll manage to add some error handling and create a PR. |
Beta Was this translation helpful? Give feedback.
-
My HTTP library should be at least throwing an AccessDeniedException: https://github.com/Tustin/Haste/blob/master/src/Http/Middleware/ResponseHandlerMiddleware.php#L61 Not sure where you are getting the var_dump at (unless you're using an older version?) |
Beta Was this translation helpful? Give feedback.
-
I realized that var_dump came from my debugging. I also found that Exception this morning and implemented it successfully, thank you :) |
Beta Was this translation helpful? Give feedback.
My HTTP library should be at least throwing an AccessDeniedException: https://github.com/Tustin/Haste/blob/master/src/Http/Middleware/ResponseHandlerMiddleware.php#L61
Not sure where you are getting the var_dump at (unless you're using an older version?)