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: Unable to run Functions on Cloud #6018

Closed
2 tasks done
MohamedKamran opened this issue Aug 19, 2023 · 7 comments
Closed
2 tasks done

🐛 Bug Report: Unable to run Functions on Cloud #6018

MohamedKamran opened this issue Aug 19, 2023 · 7 comments
Assignees
Labels
bug Something isn't working product / functions Fixes and upgrades for the Appwrite Functions.

Comments

@MohamedKamran
Copy link

👟 Reproduction steps

I just made a function Python 3.9 pretty simple one
print("Hello Appwrite")
and just executed

👍 Expected behavior

Give in The logs as
Hello Appwrite

👎 Actual Behavior

Execution > Failed >

No Response Recorded

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

MacOS

🧱 Your Environment

Appwrite Cloud

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

@MohamedKamran MohamedKamran added the bug Something isn't working label Aug 19, 2023
@Rithwik0480
Copy link

Rithwik0480 commented Aug 19, 2023

Could you please walk me through the steps followed by you for setting up the Appwrite cloud?

@MohamedKamran
Copy link
Author

Yes,sure @Rithwik0480

Appwrite>Project>Function>>>
Set Name, and Runtime as Python 3.9
Execute Access as All,No Events,No Schedule,No Variables
and hence Function created

Went to Function > Create Deployment
Now back to Python I just compressed to GZip File using tar -czf folder_name.tar.gz folder_name/
Uploaded GZip FIle and then builded it.

When Pressing Execute Now there is an item added on Excecutions as a Failed Log
Error Screen

when i look into its Logs there are no Responses, Logs or even Errors.

@stnguyen90
Copy link
Contributor

stnguyen90 commented Aug 21, 2023

I just made a function Python 3.9 pretty simple one print("Hello Appwrite") and just executed

If that is your full function code, it won't run successfully. Please follow the docs for functions for how your function should be written. Also, I highly recommend using the CLI (as mentioned in the docs) to initialize and deploy your function.

@stnguyen90 stnguyen90 added the product / functions Fixes and upgrades for the Appwrite Functions. label Aug 21, 2023
@stnguyen90 stnguyen90 self-assigned this Aug 21, 2023
@ph1oneX
Copy link

ph1oneX commented Aug 22, 2023

Can u just share me a gzip template itll be a bit convinient

@tripolskypetr
Copy link

I think this is related to this issue

@stnguyen90
Copy link
Contributor

@MohamedKamran, is your problem resolved yet? FYI, I'll need to close this due to inactivity soon.

@MohamedKamran
Copy link
Author

Look, its not solved its better u provide me with a template btw i just figured alternative so its not actually solved but Yh we are good with closing this issue.

Just provide me a template

@MohamedKamran MohamedKamran closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 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 / functions Fixes and upgrades for the Appwrite Functions.
Projects
None yet
Development

No branches or pull requests

5 participants