Error 404 on photo after getting via details [duplicate] - google-places-api

This question already has an answer here:
Google Place Photo API returning 404
(1 answer)
Closed 5 years ago.
When making a call to https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJyWEHuEmuEmsRm9hTkapTCrk with my key, a got a correct response. It gives me photos and photo reference. But when searching for the photo, I got a 404 message. I'm doing a search on https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CmRZAAAAaCHi7iCO7RowcwbEF5dg_QUG3lNW6fr7F_tVLIQ2cy2agD3lvWH2Bms_pvet71mxz7CZaSm3zud8sjPIxN7RrD-pbDHQ6P24yMQS2vJnDFOMHTWx2GowZoQ2GnoAFHU4EhDbUH2QDrCIVXT7JgXg-Ck9GhSlBLEcxhUM7Ewl6LP9cnh4_YYZSQ for instance (with key). The photo reference is what I got from the above search.
Anything I'm doing wrong? Or could it be a Google caching problem?

I think this is because the response is not json try removing it:
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CmRZAAAAaCHi7iCO7RowcwbEF5dg_QUG3lNW6fr7F_tVLIQ2cy2agD3lvWH2Bms_pvet71mxz7CZaSm3zud8sjPIxN7RrD-pbDHQ6P24yMQS2vJnDFOMHTWx2GowZoQ2GnoAFHU4EhDbUH2QDrCIVXT7JgXg-Ck9GhSlBLEcxhUM7Ewl6LP9cnh4_YYZSQ&key=yourkey
I believe there is an issue with a few of the google sources but it may be related to the placeId you are dealing with. The only difference I have noticed is that 404 are returned when hitting this server https://lh5.googleusercontent.com and photos are returned when hitting this server https://lh4.googleusercontent.com.
For example, I had success with this placeId - ChIJWTLw5D17NYgR0WSz74Ble5s

Related

Cant figure out, why i get a 403

i try to setup the youtube api but i get a 403.
I tried to setup several times- without success.
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails&id=-DIJvggBrg8&key=xyz
Maybe someone is able to help me or even login to the console for a setup?
The 403 error by itself is not of immediate use. Its attached error code (as I already pointed out above) sheds light on the things that happened.
The API responds to any query you make with a text (that is structured in JSON format). That response text contains the needed error code.
I suggest you to proceed with the following steps:
delete the old API key (right now it is still accessible!);
create a new API key and
run your API query using the new key and then post here the API response text.
Note that I checked the video -DIJvggBrg8 to which your query refers to with my own API key and got no error but a JSON text describing the video.

Error: invalid_scope - This app hasn't been verified to access

Has anyone experienced this error before? I have been researching, testing, and banging my head to get this error to go away but nothing seems to work.
This is a similar question to the following posts:
Error: invalid_scope google read contact
Google Api:: Error: invalid_scope
403 error when calling Google People API
Unfortunately, these posts never were resolved or aren't helpful.
What is puzzling is, i'm following the examples listed here: https://developers.google.com/api-client-library/javascript/samples/samples. Along with testing the ONLY the scopes I need here: https://developers.google.com/people/api/rest/v1/people/get.
However, I cannot seem to get past the popup screen that states i'm passing an invalid scope.
FYI, I have the API Console setup to use Google People API, Google+, and Google Contacts. I'm using my client id and api key in the "gapi.auth2.init" config call.
Any insight would be super helpful! Thank you for your time and response.
This is a scope issue because my web application has not been verified by Google for OAuth.
As a developer you can test the source by entering your test account(s) here: https://groups.google.com/forum/#!forum/risky-access-by-unreviewed-apps
To get approval you must submit the form here: https://support.google.com/code/contact/oauth_app_verification
after googling some time I've come across this question and the list of scopes of google:
https://developers.google.com/identity/protocols/googlescopes
Just in case this helps.
I copied and paste code from google developers example page
Search list
and that example didn't work for me. I got the same error about invalid scope...
Solution was to change below line:
private static final Collection<String> SCOPES = Arrays.asList("YouTubeScopes.https://www.googleapis.com/auth/youtube.force-ssl YouTubeScopes.https://www.googleapis.com/auth/youtubepartner");
with following line:
private static final Collection<String> SCOPES = Arrays.asList("https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/youtubepartner");
Basically I just get rid of "YouTubeScopes" prefix and it has started to work.

Pinterest API stop working [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
We are offering Pinterest Pin scheduling features to our customer from last 1.5 years. We are suddenly started getting error response "Something went wrong on our end. Sorry about that." from today.
I have tried the Pinterest API explorer and also getting the same error message. The strange part is, though we are getting an error message, Pin is created with a broken image. I.e. https://in.pinterest.com/pin/573434965041286865/, When we try to open Image URL directly in browser i.e. https://s-media-cache-ak0.pinimg.com/originals/d0/ad/c8/d0adc8520559848912b22f392eb339c1.jpg, it shows Access Denied error.
Is there any API changes or any other issue? We are currently passing the image as image_url parameters. We have tried sending a picture as multipart/form with image parameter too, but we are getting the same error.
here is the sample of our request.
URL: https://api.pinterest.com/v1/pins/?access_token=&fields=id%2Clink%2Cnote%2Curl
Form Data:
image_url:http://d1ttb7iswciaye.cloudfront.net/wp-content/uploads/2015/06/slide1_img.png
note:Take one step forward, and then one more. It's all possible if you keep taking a small step forward#ows #success #possible
board:573435033743083706
Also, is there any way to connect to Pinterest support? Their help form at https://developers.pinterest.com/support/contact/ is also not working.
We are getting HTTP 500 error when trying to publish via their API. Moreover, the Pins actually show up but without a image.
I did find a contact/bug report at the bottom of this page
Now the bug is resolved . My pin is created with photos .

400 error for profile image -- every other time, every time [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Facebook graph profile image unreliable
I am having a bizarre issue which is most likely the same as this post on the developer forum:
http://forum.developers.facebook.net/viewtopic.php?id=108447
Every other time I load the page it will issue the 400 [Bad Request] error, and every other time it will load the image successfully. This cycle is consistent.
I am directly accessing the graph URL, without any middleware e.g. https://graph.facebook.com/1063500095/picture?type=large
I am worried it is a problem on Facebook's side because this just started happening yesterday. Ideas?
For me it's a similar problem, I got round it by displaying less images then I was doing (I was trying to request 20+ images at once), now I'm only requesting say 5. Seemed to fix my problem.
You are accessing the image as you are supposed to. Log a bug with Facebook (not that you will likely get a response) for any issues.

Net::HTTP Gives time out but browser visit returns data

I tried the following
Net::HTTP.get_print URI.parse(URI.encode('https://graph.facebook.com/me/likes?access_token=mytoken', '|'))
(My Token is my actual token in code)
I get a EOFError: end of file reached error
If I visit the page with my browser it loads up a JSON page. Any idea what could be causing the error? It was working a few days ago. Can't see any changes to Facebook API.
I'm still working on it but this is what i have so far...i found a bug report with facebook on the issue: http://forum.developers.facebook.com/viewtopic.php?pid=225521
I can safely call
Net::HTTP.get_print URI.parse(URI.encode('http://www.whyspam.me', '|'))
and get a responsejust fine, but i've yet to be capable of getting a response from any https site such as bankofamerica.com. I'll keep you posted, if I find anything else...hope this helps

Resources