An internal curl error has occurred within the executor! 1.4.2 function
- 0
- Self Hosted
- Functions
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?
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
[SOLVED] An internal curl error has occurred within the executor! 1.4.2 function
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
removing http logs (body, headers etc) and keeping a few lines of logs works fine
what were you logging exactly?
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"
hmm i wonder if the body, headers, etc are simple json encodable objects. if not, that could be a problem.
if you only remove the body, headers, etc but keep all the logs, does it work?
yes, removing this logger fixes the thing
so there could be some json unescapable chars in my logs?
possibly...im not sure.
any logs in the runtime container?
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
ya doesn't look like there's anything
The only other thing i can think of is if something is being truncated in transit between one of the containers that's causing a problem 🤷🏼♂️
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...