400 Bad request error on server-side calls (google.script.run) from a GAS web app

59 views
Skip to first unread message

Faustino Rodriguez

unread,
Jan 18, 2024, 11:28:53 AM1/18/24
to Google Apps Script Community
Since Jan.17 a Google Apps Script project published as a web app started to throw an error when calling a server side function using google.script.run
- the error in the browser console (client side) looks like this (I did shorten the ID and Token for simplicity)

Also, 
- There is no error registered server side, I guess it's not getting there
- It is happening for both /dev and /exec calls
- The GAS web app has worked for many years
- Last deployment is from Dec.21 2023

I guess this might be caused by a change from Google in the workflow from browser to server

Is anybody else having this issue OR have an idea about it?

Thanks, Fausto



Xe Pueblos

unread,
Jan 18, 2024, 12:16:50 PM1/18/24
to google-apps-sc...@googlegroups.com
Hello Faustino,

We are having the same error on our end. It is either a post error 400 or error 500 message.

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/818d5a82-21f3-4494-b829-132687977449n%40googlegroups.com.


--
Best Regards,


Xe Pueblos

My Amazon Guy - IT Specialist



Faustino Rodriguez

unread,
Jan 18, 2024, 12:57:21 PM1/18/24
to Google Apps Script Community
Thanks. I also opened this ticket in the GAS Issue Tracker asking Google for help 

Emerson Maia

unread,
Jan 18, 2024, 1:02:57 PM1/18/24
to google-apps-sc...@googlegroups.com

Good afternoon, is your app on V8?


Jacob Edward

unread,
Jan 18, 2024, 8:15:44 PM1/18/24
to Google Apps Script Community
I am also having a 400 error... however its only if I attempt to upload the 4 MB version of my app... the smaller file size is still working... idk what that means, I did a search and a few different things are telling me the limit is 50 MB... I've never had this problem before either...

Jacob Edward

unread,
Jan 18, 2024, 9:05:18 PM1/18/24
to google-apps-sc...@googlegroups.com
I found out the error was from some silliness with my meta object containing URLs that messed something up... Deleting that section and the 400 goes away and successfully completed, maybe that's something to look out for you too but 400s can be lots of things 

On Thu, Jan 18, 2024, 5:15 PM Jacob Edward <oughtimp...@gmail.com> wrote:
I am also having a 400 error... however its only if I attempt to upload the 4 MB version of my app... the smaller file size is still working... idk what that means, I did a search and a few different things are telling me the limit is 50 MB... I've never had this problem before either...

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages