Jump to content

issue with gc.com search API - hiddenBy


Recommended Posts

I'm using GSAK, which uses the LIVE API, to handle, deal with caches.

 

I recently encountered an issue when trying to fetch caches hidden by a specific user. 
For some users this works fine, but for some users this does not work as expected - instead hundreds, thousands of caches of a lot of different users where imported, however none of the cache owner in question. 

 

Digging further into this problem and playing around with my own profile settings and authorizations, it turned out to be this is caused by the profile authorization setting
"Do not share my personal information with Authorized Developer applications".


If this option is turned on, the caches hidden by the owner in question can no longer be retrieved, which is somehow expected as this is the way the API is supposed to behave, in that case however, a 401 http code should be return


rather than hundreds, thousands of caches owned by a lot of different owners are fetched. 

 

This obviously seems to be a bug. 
 

regards, Wolfgang 

 

gc-profile-authorization.jpg

  • Upvote 1
Link to comment

This has now been fixed to return a 403, instead of the 401 proposed here.

 

It's not that you weren't authenticated/authorized to see the content because we didn't know who you are, but rather that you didn't have permissions to access them. So 403 was more accurate.

 

The public API documentation will be updated shortly.

  • Upvote 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...