-
Notifications
You must be signed in to change notification settings - Fork 97
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
Issue with asset upload. #132
Comments
Hey Rohit, using proxies with our JS SDK can be a little bit tricky. The main reason is our dependency Axios which automatically tries to use the correct proxy settings. This turns out to be problematic for some users. Option 1: Set your proxy config via the
|
Hi @axe312ger, Thanks for the information, we tried the option provided by you to setting up the proxy. but still getting the same error. :( We are creating the proxy agent like below and calling in the create client function . below is the code const cfClient = contentful.createClient({ |
Hi @manirohit1002,
note the httpsAgent |
Hi @Khaledgarbaya , yeah, sorry I have corrected it. but now i am getting following error - (node:8624) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: connect ECONNREFUSED 151.101.44.249:443 |
Looks like your proxy is refusing the connections. Are you sure u are using the correct configuration? Also, a full error stack trace might help us to help you :) |
I am closing this issue since it is inactive, feel free to open a new one |
Hi there,
Getting below error while uploading and processing an asset. Can you please look into it.
(node:54832) UnhandledPromiseRejectionWarning: Unhandled promise rejection (reje
ction id: 3): 400 Bad Request: {
"status": 400,
"statusText": "Bad Request",
"message": "",
"details": {},
"request": {
"url": "https://api.contentful.com:443/spaces/",
"headers": {
"Accept": "application/json, text/plain, /",
"Content-Type": "application/vnd.contentful.management.v1+json",
"X-Contentful-User-Agent": "sdk contentful-management.js/3.10.0; platform
Node.js/8.1.4; os Win32/0.0.0",
"Authorization": "Bearer ...ac599",
"user-agent": "node.js/v8.1.4",
"Accept-Encoding": "gzip",
"host": "api.contentful.com:443"
},
"method": "get"
}
We are behind corporate proxy but after deploying on heroku also getting the same error.
Thanks
The text was updated successfully, but these errors were encountered: