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 are trying to migrate from Axios. For development environment, we used to set NODE_TLS_REJECT_UNAUTHORIZED='0' for self signed certificates. But this is not working for GOT.
As a workaround on local system, I can use below. But I need some solution which does not require additional conditions in code for production.
await got.get(${myendpoint},
{
https: {
rejectUnauthorized: false
},
responseType: 'json'
} as any)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to migrate from Axios. For development environment, we used to set NODE_TLS_REJECT_UNAUTHORIZED='0' for self signed certificates. But this is not working for GOT.
As a workaround on local system, I can use below. But I need some solution which does not require additional conditions in code for production.
await got.get(
${myendpoint}
,{
https: {
rejectUnauthorized: false
},
responseType: 'json'
} as any)
Beta Was this translation helpful? Give feedback.
All reactions