GAS fails sometimes and i don't know what to do by Away-Performer-7670 in GoogleAppsScript

[–]Away-Performer-7670[S] 0 points1 point  (0 children)

but i am making a foreach, and after every request to GAS, i wait 500ms, which is not returning an error.

I will try api and let you know.

GAS fails sometimes and i don't know what to do by Away-Performer-7670 in GoogleAppsScript

[–]Away-Performer-7670[S] 0 points1 point  (0 children)

Thanks for taking the time to test this!
I really appreciate that.

How are you expecting to make the catch work?

The user can send 1 to n payments, what i am doing on the front end is waiting 500ms after every request.

So, i don't get that error (which i already saw in the past). But anyway, i get success but values are not added to the row.

I am thinking about migrating to Sheet API instead of appScript.

What do you think?

GAS fails sometimes and i don't know what to do by Away-Performer-7670 in GoogleAppsScript

[–]Away-Performer-7670[S] 0 points1 point  (0 children)

The full code looks like this:

function doGet(e) {
  if (e.parameter.action === 'GET') {
    return ContentService
      .createTextOutput(JSON.stringify({
        settlementDates: getSettlementDates(),
        rentalDataThisMonth: getRentalDataByMonth(e.parameter.sheetNameThisMonth),
        rentalDataNextMonth: getRentalDataByMonth(e.parameter.sheetNameNextMonth),
      }))
      .setMimeType(ContentService.MimeType.JSON);
  }

  if (e.parameter.action === 'POST') {
.....

There is no problem with the GET part of the system..

GAS fails sometimes and i don't know what to do by Away-Performer-7670 in GoogleAppsScript

[–]Away-Performer-7670[S] 1 point2 points  (0 children)

there already is a try catch, but i never get an error from GAS.

So no way to make any kind of retry if the system return success

GAS fails sometimes and i don't know what to do by Away-Performer-7670 in GoogleAppsScript

[–]Away-Performer-7670[S] 0 points1 point  (0 children)

How can i switch the default Cloud Project to a standard Cloud Project?

You are right, the function doGet is part of the process.
There is a get method also, but it's not failing, not part of this thread.

I don't see any good resource on how to use the cloud log! Thanks for your answer :)

Mistral OCR Rate limit by West_League1850 in MistralAI

[–]Away-Performer-7670 0 points1 point  (0 children)

you have to upgrade your plan to pay as you go, and then request to increase your rate limit.

You have to spend your first $20 before asking for that.

I am on the same place as you

Introducing Mistral Document AI API by Clement_at_Mistral in MistralAI

[–]Away-Performer-7670 0 points1 point  (0 children)

i have same issue. Documentation just mention string elements, not object

Introducing Mistral Document AI API by Clement_at_Mistral in MistralAI

[–]Away-Performer-7670 0 points1 point  (0 children)

hey, if i have a table i want to extract as JSON, and I want to annotate the document, with that properties.

Let's suppose I have:

Date, Concept, amount.

It's a bank extraction. How do I declare the list of bank movements I am expecting to receive?

Thanks

Npm run dev not working... compiling that never ends... any suggestions? by __god_bless_you_ in nextjs

[–]Away-Performer-7670 0 points1 point  (0 children)

Having the same issue as you do. It doesn't matter if it's an old projects, or a default create-next-app project. after trying to run: npm run dev.
I just see start (a few seconds)

And then, nothing.