Authentication fails with "not a valid key=value pair (missing equal-sign)"
cmxl opened this issue · 2 comments
cmxl commented
I'm using Postman and want to GET https://api.astronomyapi.com/api/bodies
I add my Authorization Header: Basic myfancyappidandsecrethash
The result is a 403 with the following message:
{
"message": "'ZDQ...' not a valid key=value pair (missing equal-sign) in Authorization header: 'Basic ZDQ...'."
}
I generated the hash with atob(${appid}:${appsecret}
);
Even if I add the Origin header (Domain from Dashboard) in the request I still get the same exact error.
astroanu commented
the url should be https://api.astronomyapi.com/api/v2/bodies
can you try with that please ?
cmxl commented
OMG, I'm just super stupid...
And I thought I had copied the URL.
v2 works perfeclty fine, thanks!