Skip to content

403 error in Comtrade_MetaData.r #5

Description

@ellisp

I see this error

Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'content' in selecting a method for function 'fromJSON': cannot open the connection
In addition: Warning message:
Failed to open 'https://comtradeapi.un.org/data/v1/getMetadata/C/M/HS': The requested URL returned error: 403 

when I run integrate.r. Is this because I need my own API key and to do something to register it? I have uncommented the line Sys.setenv('COMTRADE_PRIMARY' = 'xxxxxxxxxxxxx') but this doesn't help. I read the guidance on getting an API key but don't want to bother with this if it is something else that is the problem and I should be able to get your API key to work

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions