Bad arguments to select list item , the operation select list item cannot acccept the arguments:{"<!doctype"}

I need help with this issue, since I can't understand why the error is in the topic, if the list is in Json format and for this I use the json decoder. If someone helps me I would be eternally grateful.

Your blocks are too fuzzy to read.

Please post the JSON text you want to decode and an exported .aia file.

I extract the text from a macro that I create in the google spreadsheet, and the text is exported as follows:
[{"accion":"consultar","num":"PAST01","columna2":"Pastel","columna3":"Postre","columna4":"Juiceria","columna5":"paq1","columna6":1}]

I get it from this url Sign in - Google Accounts

Control_de_inventarionut_1.aia (12.9 KB)





Capture

The JSON text you supplied is okay.

So the responseContent that arrives is not that JSON text but is something else.

Capture it and display it to see what it is.
(Either using Do It or sending it to a Label.)

1 Like

The return of <!doctype> indicates that you are getting back an html page, probably an error page.

(Post deleted)

Thank you very much for helping me, I will take into account what you found.

ok, very likely that is, since I only checked the second anyone

Will depend on which script editor you use, with the legacy editor it is anyone,even anonymous with the new editor it is Anyone which is the third choice, not Anyone with a google account

(post deleted by author)

1 Like

This frequent problem exposes the need for a simple is_JSON test block.

Here is my sloppy attempt, all draggable ...


1 Like

It may come back as a stringified JSON not a JSON object.....

2 Likes

Your script url now return this..

Yes, I already solved the problem, in the app the data I need is coming out. Thank you very much for your help, much appreciated.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.