You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a proxy-like endpoint where users can upload files to another service. We use GOT to execute the PUT request. When the external service response 413 (PAYLOAD_TOO_LARGE) got then logs the entire request. Because this request payload is ~40mb this data is written to our console and causes our app to crash.
We are not logging the request, it seems like got is doing this internally. Is there some way to turn this behavior off for a specific request? (or entirely) so that our backend doesn't blowup?
Thanks!
The text was updated successfully, but these errors were encountered:
goleary
changed the title
How to prevent GOT from logging request details on error
How to prevent got from logging request details on error
Jun 14, 2024
We have a proxy-like endpoint where users can upload files to another service. We use GOT to execute the
PUT
request. When the external service response 413 (PAYLOAD_TOO_LARGE) got then logs the entire request. Because this request payload is ~40mb this data is written to our console and causes our app to crash.We are not logging the request, it seems like got is doing this internally. Is there some way to turn this behavior off for a specific request? (or entirely) so that our backend doesn't blowup?
Thanks!
The text was updated successfully, but these errors were encountered: