-
Notifications
You must be signed in to change notification settings - Fork 24
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
Max retries exceeded #3
Comments
Hello,
It depends on your account. Please refer to https://unstats.un.org/wiki/pages/viewpage.action?pageId=125141443
Best Regards
The Comtrade Team
|
Gotcha, Thanks! |
Following up on this to clarify whether I understand the new API restrictions correctly. When making the following query (see below), I would expect to receive a dataframe with at most 97 rows because there are at most 97 2-digit HS codes in a specific year. However, I get mydf = comtrade.previewFinalData(
typeCode='C',
freqCode='A',
clCode='HS',
period='2002',
reporterCode='842', #USA
cmdCode='AG2',
flowCode='M',
partnerCode='156', #China
partner2Code=None,
customsCode=None,
motCode=None,
maxRecords=500,
format_output='JSON',
aggregateBy=None,
breakdownMode='classic',
countOnly=None,
includeDesc=True
) |
I guess the service is currently undergoing maintenance. I have conducted some tests, and the requests that used to work fine are now giving the same error as you mentioned. Waiting for the official team to resolve this issue~😀 |
@uncomtrade do you happen to know when this issue will be resolved? |
You can check if the search page on the official website can successfully fulfill your query (similar to calling an API). If you're in a hurry, you can try contacting them through their official email or Twitter. I noticed they are quite active on Twitter, so you can give it a try. 😁 |
Thanks @senn117. I sent them an email; hoping they'll resolve this sooner rather than later since it seems to be affecting their web interface as well. |
You're welcome @najuzilu 😀. I also look forward to the issue being fixed smoothly by the official team. I use their API services to query data every month, which is very convenient. |
When I call comtradeapicall.getFinalData, I will get HTTPSConnectionPool(host='comtradeapi.un.org', port=443): Max retries exceeded with url error. Is there any limitation of getFinalData?
The text was updated successfully, but these errors were encountered: