Back

function presents error but does not display in docker logs

  • 0
  • Self Hosted
  • Functions
rafagazani
2 Feb, 2024, 00:40

{'$id': '65bbe8072af421ea4e60', '$createdAt': '2024-02-01T18:50:47.176+00:00', '$updatedAt': '2024-02-01T18:50:47.277+00:00', '$permissions': [], 'functionId': 'atualizar_status_ordem_servico', 'trigger': 'event', 'status': 'failed', 'statusCode': 500, 'response': '', 'stdout': '', 'stderr': 'Internal Runtime error.', 'duration': 0.0380728}]}

when I try to query what happened to the failed execution with docker logs project-DeploymentID returns nothing in the console.

TL;DR
The developer is experiencing an error with a function in Docker. The error is not being displayed in the Docker logs. When trying to query the failed execution with "docker logs project-DeploymentID", nothing is being returned in the console. Solution: To debug the issue, the developer should check the logging configuration in the Docker container and ensure that the logs are being written correctly. They may need to modify the logging configuration or check for any potential errors in the code that could be preventing the logs from being displayed.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more