Internal curl errors has occurred within the executor! Error Number: 52. Error Msg: Empty reply from
- 0
- Self Hosted
- Functions
I'm getting the following error very frequently now:
Internal curl errors has occurred within the executor! Error Number: 52. Error Msg: Empty reply from server\nError Code: 500
The whole is in the try-and-catch block where in catch I'm returning json response with a 500 status code.
Could you post your code, leave out anything not important to the question at hand
export const errorRes = (
res: any, error: any, message: string, code: number) => {
error(message);
return res.json(
{success: false, error: message},
code
)
};
export default async ({req, res, log, error}: Context) => {
let doc: string | null = null;
let client;
try {
if (
!process.env["APPWRITE_FUNCTION_API_ENDPOINT"] ||
!process.env["APPWRITE_API_KEY"] ||
!process.env["APPWRITE_FUNCTION_PROJECT_ID"]
) {
return errorRes(res, error, 'ENV Variables missing.', 500);
}
/* --------------------- */
// Do operations
/* --------------------- */
return res.json({
success: true,
file_id: uploadedFile.$id,
});
} catch (err: unknown) {
if (err instanceof Error) {
error(err.stack);
}
return errorRes(res, error, 'Something went wrong internally. Message: ' + err, 500);
}
};
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...