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: Server Error on Empty Function Entrypoint #8041

Open
2 tasks done
ItzNotABug opened this issue Apr 29, 2024 · 0 comments
Open
2 tasks done

🐛 Bug Report: Server Error on Empty Function Entrypoint #8041

ItzNotABug opened this issue Apr 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ItzNotABug
Copy link
Contributor

👟 Reproduction steps

  1. Create a New Function
  2. Add the Name, Select Runtime > Next
  3. Upload a code.tar.gz > Don't specify Entrypoint > Next
  4. Set your Execute Permissions > Create
  5. Server Error

Stacktrace :

2024-04-29 21:13:35 [Error] Method: POST
2024-04-29 21:13:35 [Error] URL: /v1/functions
2024-04-29 21:13:35 [Error] Type: TypeError
2024-04-29 21:13:35 [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 531
2024-04-29 21:13:35 [Error] File: /usr/src/code/app/controllers/api/functions.php
2024-04-29 21:13:35 [Error] Line: 171

This wasn't the case on pre 1.5.x if I am not wrong.
We should probably use an empty string as a default as one is already used during executions, see here.


I am open to contributing to this if assigned.

👍 Expected behavior

Process the deployment like the previous versions, assuming index.js as the default entrypoint.

👎 Actual Behavior

Server Error.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 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?

@ItzNotABug ItzNotABug added the bug Something isn't working label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant