Знаете ли вы, бот Либре также обеспечивает 3D аватары и бесплатный веб - выступление по API?
Self, AIML, and scripting

Max size of a string I can get from a Http.requestText request?

по amilsalis опубликовано Nov 22 2019, 19:50

Hello o/

Could you give me a hand again?

What is the max size of a string that I can get from a Http.requestText request? It is truncating.


function searchGoogle(){

    text = (Http.requestText("https://script.google.com/macros/s/AmfycKwbrtui2_R9Ms-T0RdL4sQpz8QaHO7irSdggYls7GD3UV1ZS5Q/exec?param1=" + Utils.encode(star)));


Obs: i've changed the string of the google sheet Im accessing above because the forum is public, but it works fine, it's just truncating.

THank you very much in advance!


by admin posted Nov 24 2019, 7:50
The max size of a String literal in Self is 1k.
If the response is XML or JSON you can call requestXML() or requestJSON() and the value will be parsed, so each element can be 1k (so you could split the result into 1k XML elements if you can change the web service).

Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 262, today: 0, week: 2, month: 95

by amilsalis posted Nov 24 2019, 9:15
Thank you ! I will check it out in that direction.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 299, today: 0, week: 1, month: 100

Идентификатор: 30373162
Теги: self
Опубликовано: Nov 22 2019, 19:50
Ответы: 2
Вид: 276, сегодня: 1, неделю: 2, месяц: 77
Я уверен, что
Вывесить флаг как оскорбительное, или в нарушение правил сайта