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
Python SDK Error #514
Comments
This almost certainly is a network configuration issue. I'm not sure if we have any tutorials for configuring Python for proxy settings. |
@WillBGE was @Jeff-Meadows's comment helpful? |
Hi guys,
I’ve passed this info along to my user. Thanks!
Thank you,
Will
|
Hi guys,
My user is still getting the 443 error after reconfiguring the proxy. He is able to get an access token but unable to process any folder transactions. I had our network team check the firewall, and api.box.com is whitelisted, so outbound traffic is not being blocked. Any other suggestions?
Thank you,
Will
|
Hi guys, |
@yossibatash Are you also running the SDK behind a proxy and if so, what type of proxy is it? |
@WillBGE What type of proxy is being used (i.e. http, https, socks)? |
@WillBGE I would also try running a curl command like the one below in your environment. If it works, then we know the issue is more likely related to the SDK rather than the environment.
|
C:>curl -X GET https://api.box.com/2.0/files/12345 -H 'Authorization: Bearer 0003AGCybo6d7xSPjtBYzpQmf2F5' Bad RequestYour browser sent a request that this server could not understand. |
Dani, use the real folder ID and confirm the outcome?
Thank you,
Will
|
This is one of the folders I see as the API user:
https://ge.ent.box.com/folder/115260218908
Is this the same url I should try with curl?
Best regards,
Dani
From: WillBGE <notifications@github.com>
Sent: Thursday, June 18, 2020 1:28 PM
To: box/box-python-sdk <box-python-sdk@noreply.github.com>
Cc: Pinkovich, Dani(GE Healthcare) <Dani.Pinkovich@ge.com>; Comment <comment@noreply.github.com>
Subject: EXT: Re: [box/box-python-sdk] Python SDK Error (#514)
Dani, use the real folder ID and confirm the outcome?
Thank you,
Will
Will Belcher
Application Operations Engineer
Corporate Coretech & Cyber, Digital Workplace
E: William.Belcher@ge.com<mailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com>> P: +1 401 451-5379
75 Fountain Street Suite 300 | Providence, RI 02902 USA
General Electric Company
From: danipinkovich <notifications@github.com<mailto:notifications@github.com>>
Sent: Thursday, June 18, 2020 12:53 PM
To: box/box-python-sdk <box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com>>
Cc: Belcher, William (GE CoreTech & Cyber) <William.Belcher@ge.com<mailto:William.Belcher@ge.com>>; Mention <mention@noreply.github.com<mailto:mention@noreply.github.com>>
Subject: EXT: Re: [box/box-python-sdk] Python SDK Error (#514)
C:>curl -X GET https://api.box.com/2.0/files/12345 -H 'Authorization: Bearer 0003AGCybo6d7xSPjtBYzpQmf2F5'
curl: (52) Empty reply from server
<title>400 Bad Request</title>
Bad Request
Your browser sent a request that this server could not understand.
curl: (56) Recv failure: Connection was reset
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP55756EMLQIAXQVP5MZP53RXJA6HANCNFSM4N4NXVEA>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHDT4BZ3U6EXGDRSRVM2RXLRXJFCRANCNFSM4N4NXVEA>.
|
Do
curl -X GET https://api.box.com/2.0/folders/115260218908 -H 'Authorization: Bearer <Insert Token>'
Thank you,
Will
|
{'access_token': '0003ZguZ9Ip8C0Iw3mujIsQnJc0l', 'token_type': 'Bearer', 'expires_in': 7199}
C:\>curl -X GET https://api.box.com/2.0/folders/115260218908 -H 'Authorization: Bearer 0003ZguZ9Ip8C0Iw3mujIsQnJc0l'
curl: (52) Empty reply from server
<html><head><title>400 Bad Request</title></head>
<body><h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br></p>
</body></html>
curl: (56) Recv failure: Connection was reset
Best regards,
Dani
From: WillBGE <notifications@github.com>
Sent: Friday, June 19, 2020 8:23 AM
To: box/box-python-sdk <box-python-sdk@noreply.github.com>
Cc: Pinkovich, Dani(GE Healthcare) <Dani.Pinkovich@ge.com>; Comment <comment@noreply.github.com>
Subject: EXT: Re: [box/box-python-sdk] Python SDK Error (#514)
Do
curl -X GET https://api.box.com/2.0/folders/115260218908 -H 'Authorization: Bearer <Insert Token>'
Thank you,
Will
Will Belcher
Application Operations Engineer
Corporate Coretech & Cyber, Digital Workplace
E: William.Belcher@ge.com<mailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com>> P: +1 401 451-5379
75 Fountain Street Suite 300 | Providence, RI 02902 USA
General Electric Company
From: danipinkovich <notifications@github.com<mailto:notifications@github.com>>
Sent: Friday, June 19, 2020 7:23 AM
To: box/box-python-sdk <box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com>>
Cc: Belcher, William (GE CoreTech & Cyber) <William.Belcher@ge.com<mailto:William.Belcher@ge.com>>; Mention <mention@noreply.github.com<mailto:mention@noreply.github.com>>
Subject: EXT: Re: [box/box-python-sdk] Python SDK Error (#514)
This is one of the folders I see as the API user:
https://ge.ent.box.com/folder/115260218908
Is this the same url I should try with curl?
Best regards,
Dani
From: WillBGE <notifications@github.com<mailto:notifications@github.com<mailto:notifications@github.com%3cmailto:notifications@github.com>>>
Sent: Thursday, June 18, 2020 1:28 PM
To: box/box-python-sdk <box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com%3cmailto:box-python-sdk@noreply.github.com>>>
Cc: Pinkovich, Dani(GE Healthcare) <Dani.Pinkovich@ge.com<mailto:Dani.Pinkovich@ge.com<mailto:Dani.Pinkovich@ge.com%3cmailto:Dani.Pinkovich@ge.com>>>; Comment <comment@noreply.github.com<mailto:comment@noreply.github.com<mailto:comment@noreply.github.com%3cmailto:comment@noreply.github.com>>>
Subject: EXT: Re: [box/box-python-sdk] Python SDK Error (#514)
Dani, use the real folder ID and confirm the outcome?
Thank you,
Will
Will Belcher
Application Operations Engineer
Corporate Coretech & Cyber, Digital Workplace
E: William.Belcher@ge.com<mailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com>>>> P: +1 401 451-5379
75 Fountain Street Suite 300 | Providence, RI 02902 USA
General Electric Company
From: danipinkovich <notifications@github.com<mailto:notifications@github.com<mailto:notifications@github.com%3cmailto:notifications@github.com<mailto:notifications@github.com%3cmailto:notifications@github.com%3cmailto:notifications@github.com%3cmailto:notifications@github.com>>>>
Sent: Thursday, June 18, 2020 12:53 PM
To: box/box-python-sdk <box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com%3cmailto:box-python-sdk@noreply.github.com<mailto:box-python-sdk@noreply.github.com%3cmailto:box-python-sdk@noreply.github.com%3cmailto:box-python-sdk@noreply.github.com%3cmailto:box-python-sdk@noreply.github.com>>>>
Cc: Belcher, William (GE CoreTech & Cyber) <William.Belcher@ge.com<mailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com<mailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com%3cmailto:William.Belcher@ge.com>>>>; Mention <mention@noreply.github.com<mailto:mention@noreply.github.com<mailto:mention@noreply.github.com%3cmailto:mention@noreply.github.com<mailto:mention@noreply.github.com%3cmailto:mention@noreply.github.com%3cmailto:mention@noreply.github.com%3cmailto:mention@noreply.github.com>>>>
Subject: EXT: Re: [box/box-python-sdk] Python SDK Error (#514)
C:>curl -X GET https://api.box.com/2.0/files/12345 -H 'Authorization: Bearer 0003AGCybo6d7xSPjtBYzpQmf2F5'
curl: (52) Empty reply from server
<title>400 Bad Request</title>
Bad Request
Your browser sent a request that this server could not understand.
curl: (56) Recv failure: Connection was reset
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP55756EMLQIAXQVP5MZP53RXJA6HANCNFSM4N4NXVEA>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHDT4BZ3U6EXGDRSRVM2RXLRXJFCRANCNFSM4N4NXVEA>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AP5575Y76UY6SSYNN2D5M7DRXNDCVANCNFSM4N4NXVEA>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#514 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHDT4B3EFHK4WI4DGG4XJ6LRXNKD5ANCNFSM4N4NXVEA>.
|
@danipinkovich @WillBGE Even the curl doesn’t seem to be working and is throwing a connection reset error. So it seems like it’s something to do with your environment more than the SDK. I would see if curl calls to other APIs, like an example or test API work. |
HI @danipinkovich @WillBGE , It sounds like this issue is with your environment and not with the SDK. Any update from your end? I'm going to assume that we can close this Issue, but if you are still having issues, please just re-open it and we'll go from there! Thanks, Patrick |
@WillBGE Wanted to note this is all public. Might want to redact some info. |
Hi @sujaygarlanka, I have managed to isolate the problem, when I am turning off my VPN (Palo alto global protect) I am not experiencing this issue, I asked my DevOps team to enable this type of request in the firewall but they haven't done it yet so I can't really say that this issue been resolved |
Submitting per Tatyana @ Box (Case 2182873):
User Dani.Pinkovich@ge.com is getting
error: Request "GET https://api.box.com/2.0/folders/0/items" failed with ConnectionError exception:
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='api.box.com', port=443):
Max retries exceeded with url: /2.0/folders/0/items?offset=0
(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001623BC88988>:
Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))"))
when trying to view folder items. Dani is making a GET call to https://api.box.com/2.0/folders/0/items.
He is authenticating as Service.Ultranet@ge.com. Dani is using the Python SDK, version 2.8.0. His app's details are below:
When using postman, we are able to get the folder information on and off network.
Last email from Tatyana:
Thanks, Dani.
When querying within a few minutes of that timestamp for your app's activity, these are the IP addresses that are being used:
194.9.245.34
104.129.196.179
208.49.203.14
3.230.237.143
However, when I looked at any GET calls made from any of these IPs, I get no results.
Since you can make the call successfully in Postman, I agree that this is definitely an issue with the SDK.
The text was updated successfully, but these errors were encountered: