Youtube Live API Error in creating a live Broadcast with isDefaultBroadcast=True - youtube-livestreaming-api

I'am using python to create a broadcast with api youtube streaming.
Every day I want to create a schedule video and stream it with the same url access.
So in my code I add isDefaultBroadcast=True
# Create a liveBroadcast resource and set its title, scheduled start time,
# scheduled end time, and privacy status.
def insert_broadcast(youtube, options):
insert_broadcast_response = youtube.liveBroadcasts().insert(
part="snippet,status",
body=dict(
snippet=dict(
title=options.broadcast_title,
isDefaultBroadcast=True,
scheduledStartTime=options.start_time,
scheduledEndTime=options.end_time
),
status=dict(
privacyStatus=options.privacy_status
)
)
).execute()
But i got an error 403
An HTTP error 403 occurred:
{
"error": {
"errors": [
{
"domain": "youtube.liveBroadcast",
"reason": "liveBroadcastBindingNotAllowed",
"message": "The binding is not allowed"
}
],
"code": 403,
"message": "The binding is not allowed"
}
}
I have add isDefaultStream fot the liveStream part and no problem with it.
Any idea what's going wrong ?

Related

"500 Internal error" with the Youtube Content ID API

I'm actually trying to retrieves the policies of my Youtube assets id (following this documentation :
AssetMatchPolicy: get)
There is my HTTP Request : https://i.stack.imgur.com/LL4iU.png
And there is the 500 error i got when i launch this request :
{
"error": {
"code": 500,
"message": "An internal error has occurred.",
"errors": [
{
"message": "An internal error has occurred.",
"domain": "youtubePartner",
"reason": "internalError"
}
]
}
}
I launch it again multiple time at different moments of the day in case it was just due to a temporary server problem, but always the same error...
If anyone can help me understand what can cause this error and how to fix this it would be incredible ! Thanks in advance to everyone !

Delete API - TriggerDeleteAPIPipeline.Run failed

I'm currently having problems when trying to delete an API. Basically I followed all steps detailed here: https://cdas.azure.chevron.com/api-and-integration.wiki/API-Products/Delete-API-Utility.html. But when I hit the submit button at the last step It gives me this error here:
TriggerDeleteAPIPipeline.Run failed: { "error": { "code": 502, "source": "msmanaged-na.azure-apim.net", "clientRequestId": "019d9dd4-976f-4bbd-9e4c-aac428af2577", "message": "BadGateway", "innerError": { "error": { "code": "NoResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '08585506028467688679246934075CU94'." } } } }
Any help on how to report this issue? thanks in advance.
I finally got the issue solved. The problem was that I needed to ask for the Personal access token in "full access scope".

Amazon Advertising API throws HTTP 401 Unauthorized

I am trying to generate ads reports
The create report API gives response as
{
"reportId": "amzn1.sdAPI.v1.p44571.6153E22B.2825ae5c-126d-422c-bf10-53d2d601189a",
"recordType": "campaigns",
"status": "IN_PROGRESS",
"statusDetails": "Report is being generated."
}
but the get report status API gives UNAUTHORIZED error
{
"code": "UNAUTHORIZED",
"details": "HTTP 401 Unauthorized",
"requestId": "6C1XJ33DSF546P3XZSD"
}
My first suggestion would be to ensure you’re using a valid access token.
You should also verify correct scope value and clientID in your header.

Amadeus API returns Internal error with all requests (Production Key)

{
"errors": [
{
"code": "38189",
"title": "Internal error",
"detail": "An internal error occured, please contact your administrator",
"status": "500"
}
]
}
I get this error when I use production key to send requests to AMADEUS API, this error returns just with production key but not with test key. Despite I updated header to " Accept application/vnd.amadeus+json" the error still returns.
Here one of the requests:
https://api.amadeus.com/v1/shopping/flight-offers?origin=MAD&destination=PAR&departureDate=2019-08-01&adults=1&nonStop=false&max=6
We had a configuration issue on our side. Everything has been fixed, You should be able to use all the APIs in production.
Sorry for the inconvenience.

Google AUTH API Returning 500 Error

This endpoint call has always worked:
https://www.googleapis.com/oauth2/v2/userinfo
Nothing changed. But today around 12:30ET it gives us the following response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "backendError",
"message": "Backend Error"
}
],
"code": 500,
"message": "Backend Error"
}
}
Google Services admins said they could not answer and to post here.
I saw a similar spike in 500s on login requests around the same time. It's possible it's just a random hiccup in their services. https://www.google.com/appsstatus#hl=en&v=issue&sid=22&iid=63152ed689097a6944dcdf3f15a12692 reports there was some temporary downtime logging into Hangouts for some users at around that same window -- might be the same thing.