#An internal curl error has occurred within the executor! 1.4.2 function

24 messages · Page 1 of 1 (latest)

magic bobcat
#

Executor logs:

[Error] Type: Exception
[Error] Message: An internal curl error has occurred within the executor! Error Msg: Http invalid protocol
[Error] File: /usr/local/app/http.php
[Error] Line: 1021

There is no other logs from function.
How can I observe live function runtime logs?

magic bobcat
#

Ok - for anybody that will experience the same problem:

I have integration with external api. All of my network traffic with http client was logged into console.
New open runtimes do not like logging into console - use context.log

wintry cargo
#

[SOLVED] An internal curl error has occurred within the executor! 1.4.2 function

magic bobcat
#

I think we could open it again - I changed my http client logging to use context.log but it still fails with the same error

#

An internal curl error has occurred within the executor! 1.4.2 function

#

I know that this is a lot of logs

#

but I dont see information about any limit

magic bobcat
#

removing http logs (body, headers etc) and keeping a few lines of logs works fine

wintry cargo
magic bobcat
#

request body and response body of a 2 requests

#

Im using dio package for http connection in dart 3.0 runtime

#

and a PrettyDioLogger package configured like this

 final dio = Dio();

    dio.interceptors.add(
      PrettyDioLogger(
        requestHeader: true,
        requestBody: true,
        responseHeader: true,
        logPrint: (object) => logger.log(object.toString()),
      ),
    );
#

logger object is an appwrite function context "wrapper"

wintry cargo
wintry cargo
magic bobcat
#

yes, removing this logger fixes the thing

#

so there could be some json unescapable chars in my logs?

wintry cargo
wintry cargo
magic bobcat
#
root@zdayProdAppwrite:~# docker logs 131104dd233c
Preparing for start ...
Starting ...
root@zdayProdAppwrite:~# docker logs 43e64ca0b5df
Preparing for start ...
Starting ...
#

but I have disabled development mode there

#

I mean _APP_ENV=production

#

These are containers that I check

wintry cargo