Fix Google Script

Job ID: 36405747

Budget: €8 – €30 EUR

I have created this script using AI (checck attachment)

But I'm getting this error:

10:47:44 Errore
Exception: Request failed for https://mysite.it returned code 400. Truncated server response: {"message":"Error occurred during \"filterGroups\" processing. Error occurred during \"filters\" processing. Error occurred during \"value\" proces... (use muteHttpExceptions option to examine full response)
DownloadGiacenzeVendorAPI @ Code.gs:1027

The strange thing was that before worked, but now not.

Anyway, also when it was working, the stock quantity extracted was not correct. Many products were without quantity

IMPORTANT!!!

The token it's fake
The website it's fake

For security reason of course. Anyway post you offer only if u are able to give advices, I dont' provide you anything!!
Related categories: JavaScript Google APIs Magento 2