cli-purge icon indicating copy to clipboard operation
cli-purge copied to clipboard

API error 400 invalid endpoint

Open Gokulpradeep opened this issue 5 years ago • 2 comments

Gokulpradeep avatar Aug 06 '19 08:08 Gokulpradeep

Hello @Gokulpradeep

The error says invalid endpoint. Are you able to provide more detail why you think this error is incorrect?

justinrummel avatar Aug 06 '19 11:08 justinrummel

You are most likely using invalid/incorrect credentials causing it make requests to the wrong host (which doesn't support purge).

Please ensure that:

  • You are passing in the --section flag (and if necessary --edgerc also), or that your credentials live in $HOME/.edgerc under the [default] section
  • That the host for the credentials in question ends in purge.akamaiapis.net, if not, the credentials are not for purge

Let me know if this helps!

dshafik avatar Aug 06 '19 19:08 dshafik