Skip to content
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

In ct_search, setting type = "services" requires EB02 commodity scheme #6

Closed
ChrisMuir opened this issue Jan 20, 2018 · 1 comment
Closed

Comments

@ChrisMuir
Copy link
Member

Example, showing the current issue:

vals <- ct_search(reporters = "Canada",
                  partners = "Germany",
                  type = "services")
#> Error: API request failed, with status code [200]
#> Fail Reason: Invalid classification for trade type.

Performing a query with arg type = "services" requires that the current commodity db scheme being used by comtradr be "EB02". It's easy to make this adjustment prior to making the call to ct_search by running comtradr::ct_update_databases("EB02"), but at the very least the error message in the example above should be more helpful (should indicate what the issue is, and how to fix it using ct_update_databases).

This issue first came up in #5.

@ChrisMuir ChrisMuir changed the title In ct_search, Setting type = "services" Requires EB02 Commodity Scheme In ct_search, setting type = "services" sequires EB02 commodity scheme Jan 20, 2018
@ChrisMuir ChrisMuir changed the title In ct_search, setting type = "services" sequires EB02 commodity scheme In ct_search, setting type = "services" requires EB02 commodity scheme Jan 20, 2018
@ChrisMuir
Copy link
Member Author

Fixed via commit cd25402.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant