I am trying to upload a Spherical Image to Facebook from S3. by doing the following
begin
#client.put_picture("https://s3.amazonaws.com/skreem-dev/PANO_20160717_120803_1.jpg", { allow_spherical_photo: true })
rescue Exception => e
print e.inspect
end
It returns the following Error Message
#<Koala::Facebook::ServerError: type: OAuthException, code: 1, message: An unknown error has occurred. [HTTP 500]>
It works with any normal images from the same s3 bucket
** UPDATE 1 **
Tried to upload the same image from Godaddy and i am facing the same issue.
** UPDATE 2 **
Tried to upload via Graphy API Explorer, but getting the same error
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1,
"fbtrace_id": "CWqqwQ3WBq+"
}
}
I think that your almost 15Mb image is too large. The error you are getting from Koala is not that accurate, you can try to upload it from the Facebook API explorer https://developers.facebook.com/tools/explorer and see.
Also, check the token you're using, as this is throwing an OAuth error. It could be expired.
Related
Getting error while uploading video via API on a channel which was working properly before, and started to get this error after a transfer of the youtube channel was initiated.
Tried to re-authenticate from initial owner's account and then also from the account to which we requested to be transferred to and still getting this error which seems to be an unexpected behaviour
{
code: 401,
errors: [
{
message: 'Unauthorized',
domain: 'youtube.header',
reason: 'youtubeSignupRequired',
location: 'Authorization',
locationType: 'header'
}
]
}
We are getting 400 API error on some of the files when we try to download them using below API:
https://graph.microsoft.com/v1.0/users/<user-id>/drive/items/<item-id/content
API doc : https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http
Error:
"error": {
"code": "invalidRequest",
"message": "One of the provided arguments is not acceptable.",
"innerError": {
"code": "badArgument",
...
Same API calls works for most of the files, but we are getting this error recently.
Kindly let me know What's the reason behind it? and how can we fix?
I've been using following code since a year now but suddenly this errors started appearing.
I'm using PHP Code sample provided in following url
https://developers.google.com/youtube/v3/code_samples/php#upload_a_video
ERROR:
{
"error": {
"errors": [{
"domain": "youtube.thumbnail",
"reason": "videoNotFound",
"message": "The video that you are trying to insert a thumbnail image for cannot be found. Check the value of the requests \u003ccode\u003evideoId\u003c/code\u003e parameter to ensure that it is correct.",
"locationType": "parameter",
"location": "videoId"
}],
"code": 404,
"message": "The video that you are trying to insert a thumbnail image for cannot be found. Check the value of the requests \u003ccode\u003evideoId\u003c/code\u003e parameter to ensure that it is correct."
}
}
I've print statement just before this error catching, and I could see the video ID. And I could see a wiered behavior on my video url.
https://www.youtube.com/watch?v=KV-5aiMDLDg
No comment box, no suggested videos.
Anyone else facing this issue, is there an error/Bug reported recently from Youtube?
I am having the exact same problem. Code has been running fine forever, and now is failing. I added a 20 second delay after the video upload completes, before the thumbnail is set, and it seems to always work now. So it acts like Youtube needs time to digest the video. Would love to hear a better solution though.
I am using yelp V2 API in my app.I am getting below response for requesting restaurant and food detail in any particular area. I tried almost all solution of stack overflow and everywhere else I got. But still no progress. Can anyone help me please?
Error :
{"error": {"text": "Signature was invalid", "id": "INVALID_SIGNATURE",
"description": "Invalid signature. Expected signature base
string:"GET.."}
I'm passing the following to the youtube.channels.list method in the YouTube Data API (v3).
[key] => foo,
[forUsername] => royaloperahouse,
[part] => topicDetails
But my response just contains a 500 Internal Server Error:
{
"error": {
"code": 500,
"message": null
}
}
I get the same behaviour from the Google Developers Console. What could be causing this? Am I missing something here?
YouTube confirmed this was an API bug and it was subsequently fixed.