itc-api-docs icon indicating copy to clipboard operation
itc-api-docs copied to clipboard

"Crossfire-response-badrequest-title": "The URL is invalid."

Open jpawlyn opened this issue 10 years ago • 5 comments

I started receiving the error

{
  "itcBaseUrl": "https://itunesconnect.apple.com",
  "message": "Make sure the URL is correct and try again.",
  "l10n": {
    "Crossfire-response-badrequest-title": "The URL is invalid.",
    "Crossfire-response-badrequest-message": "Make sure the URL is correct and try again."
  },
  "errors": []
}

recently. Turns out that when making requests to analytics.itunes.apple.com there now needs to be the HTTP header:

'X-Requested-By' => 'analytics.itunes.apple.com'

jpawlyn avatar Sep 07 '15 11:09 jpawlyn

Thanks for letting me know. But the docs don't cover analytics yet.

KrauseFx avatar Sep 07 '15 16:09 KrauseFx

Good point and apologies, this certainly doesn't count as an issue. Was just wanting to highlight the problem that came up a week ago for those who use your login method and then access any of the analytics calls.

jpawlyn avatar Sep 07 '15 18:09 jpawlyn

Hi Jolyon, I'm getting the same error as you, but the 'X-Requested-By' tip hasn't fixed it. Would you mind sharing your code? Thanks!

simongcx avatar Sep 17 '15 15:09 simongcx

Afraid I'm unable to share but happy to take a look at your's if you would like to email it to me at gmail (jpawlyn).

jpawlyn avatar Sep 17 '15 17:09 jpawlyn

2021:

host: https://appstoreconnect.apple.com

'X-Requested-By' => 'analytics.itunes.apple.com'

change to:

'X-Requested-By' => 'dev.apple.com'

iHTCboy avatar Aug 19 '21 08:08 iHTCboy