How to actually see errors in Ky? #795
Closed
eliezra236
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Ky throws when it fails, so you need to make sure you handle that where you use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't see logs from Ky when it fails, the request simply don't fire, and I don't see any logs as to why.
I had the following code:
I realized both
elasticClientUrlandelasticApiKeywere undefined, later when I calledpostI just didn't see any logs about why it failed, or even to acknowledged the fact it failed.had to put a log after the
postonly to realize it never gets there.Tried to set up
catchbut still never gets there.How to get logs from Ky when it fails?
I am using Expo so my Network tab options are also very limited for debugging.
Beta Was this translation helpful? Give feedback.
All reactions