7

I have essentially been using this code to load an image into Google Drive and then transferring that image over to Google Slides using Python and for some reason it stopped working today.

The code I based mine off of is located here: http://wescpy.blogspot.com/2016/11/using-google-slides-api-with-python.html

However, today I reran it and am getting an error:

googleapiclient.errors.HttpError: https://slides.googleapis.com/v1/presentations/PRESENTATION_ID returned "Invalid requests[0].createImage: Access to the provided image was forbidden.">

I am wondering if anything have changed in Google API?

8
  • Hi, are you still getting an error? I just tried it and it's working fine. Commented Jan 16, 2020 at 12:37
  • it looks like it is working today, very weird. I didnt change a line of code Commented Jan 16, 2020 at 18:59
  • 1
    I got the same error...the strange thing is that this morning, as of 05/02/2020, the same exact code worked fine. I suppose it is an internal Google error, but I cannot guarantee anything Commented Feb 5, 2020 at 16:34
  • same issue here. i thought it was what i did Commented Feb 16, 2020 at 14:40
  • 1
    I did not have this error a couple of hours ago and now have it. That's strange. No change in my code on my side. Commented Oct 18, 2021 at 2:26

2 Answers 2

1

Are you getting the same error today 2020/3/6?

<HttpError 400 when requesting https://slides.googleapis.com/v1/presentations/6-7HI:batchUpdate?fields=&alt=json returned "Invalid requests[24].createImage: Access to the provided image was forbidden.">

The error happens every time I am trying to push any image stored in Google Slides using either createImage or replaceAllShapesWithImage.

Note that the URLs pointing at Google Drive content are related to Public content. Thus, the workaround above mentioned by @miladio is not useful at this time.

Sign up to request clarification or add additional context in comments.

Comments

-1

I ran into the same issue. You should check out this link, which describes changes to the Drive API: Upcoming changes to the Google Drive API and Google Picker API

The proposed solution here seems feasible, although I have not fully tested it myself: Google script replaceAllShapesWithImage with image from drive doesn"t work any more

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.