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
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).
The text was updated successfully, but these errors were encountered:
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
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
Example, showing the current issue:
Performing a query with arg
type = "services"
requires that the current commodity db scheme being used bycomtradr
be "EB02". It's easy to make this adjustment prior to making the call toct_search
by runningcomtradr::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 usingct_update_databases
).This issue first came up in #5.
The text was updated successfully, but these errors were encountered: