Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: 500 error if you don't specify an entrypoint when creating a function manually #6308

Open
2 tasks done
jijkbird opened this issue Sep 22, 2023 · 6 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working product / console Console, UI and UX issues product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@jijkbird
Copy link

👟 Reproduction steps

Upload the function gz package, click on the redeployment of the function several times, and then delete the function version. It will prompt that it cannot be deleted, and there will be an error when deleting. The function ID cannot be found. Then directly delete the function, and later create a new function that cannot be created. It will prompt the server with an error of 500.

👍 Expected behavior

It should be possible to delete or create new functions normally

👎 Actual Behavior

Error creating function

🎲 Appwrite version

Version 1.4.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@jijkbird jijkbird added the bug Something isn't working label Sep 22, 2023
@jijkbird
Copy link
Author

QQ20230923-052138

@jijkbird
Copy link
Author

Or should you tell me how to reset the data and configuration of the function separately

@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Sep 22, 2023
@stnguyen90
Copy link
Contributor

@jijkbird, thanks for raising this issue! 🙏🏼 Would you please provide the docker logs for your appwrite container related to the 500 error?

@stnguyen90 stnguyen90 self-assigned this Sep 22, 2023
@jijkbird
Copy link
Author

�[32m[Setup] - Server database init completed...�[0m
�[32mServer started successfully (max payload is 6,291,456 bytes)�[0m
�[34mMaster pid 1, manager pid 1�[0m
�[32mWorker 1 started successfully�[0m
�[31m[Error] Timestamp: 2023-09-23T07:03:15+00:00�[0m
�[31m[Error] Method: POST�[0m
�[31m[Error] URL: /v1/functions�[0m
�[31m[Error] Type: TypeError�[0m
�[31m[Error] Message: {closure}(): Argument #10 ($entrypoint) must be of type string, null given, called in /usr/src/code/vendor/utopia-php/framework/src/App.php on line 508�[0m
�[31m[Error] File: /usr/src/code/app/controllers/api/functions.php�[0m
�[31m[Error] Line: 163�[0m

@jijkbird
Copy link
Author

I seem to have discovered something. When creating a function, the startup command is necessary @stnguyen90
But there was no prompt

@stnguyen90
Copy link
Contributor

But there was no prompt

Would you be able to provide a screenshot of what you mean?

@stnguyen90 stnguyen90 added the product / console Console, UI and UX issues label Sep 26, 2023
@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: Function 500 error 🐛 Bug Report: 500 error if you don't specify an entrypoint when creating a function manually Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working product / console Console, UI and UX issues product / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

2 participants