Back

500 internal Error

  • 0
  • Functions
  • Cloud
Meldiron
24 Apr, 2024, 06:20

Hmm. Maybe active deployment got deleted 🤔

TL;DR
Developers experiencing 500 Internal Error while trying to access a specific function after deleting a deployment. Suggested solution is to change function ID in appwrite.json and redeploy to create a new function. Alternatively, deleting the function and creating a new one may be the fastest solution.
Mosh Ontong
24 Apr, 2024, 06:20

maybe?

Mosh Ontong
24 Apr, 2024, 06:20

how can I set back HAHAHAHHAA

Meldiron
24 Apr, 2024, 06:21

Fastest solution would be to delete function and make new one

Mosh Ontong
24 Apr, 2024, 06:21

I dont want to delete and deployed again my function

Mosh Ontong
24 Apr, 2024, 06:21

because I have this plenty environment here

Mosh Ontong
24 Apr, 2024, 06:21

HAHAHAHAHHA

Meldiron
24 Apr, 2024, 06:22

Lets try to add /settings to end of URL, see if that also gives error 500

Mosh Ontong
24 Apr, 2024, 06:22

thats a cheat

Mosh Ontong
24 Apr, 2024, 06:22

ohh

Mosh Ontong
24 Apr, 2024, 06:22

HAHAHAH

Mosh Ontong
24 Apr, 2024, 06:22

thanks @Meldiron

Mosh Ontong
24 Apr, 2024, 07:16

@Meldiron

Mosh Ontong
24 Apr, 2024, 07:16

sorry for mention you again here

Mosh Ontong
24 Apr, 2024, 07:16
Mosh Ontong
24 Apr, 2024, 07:16

when I upload the env again

Mosh Ontong
24 Apr, 2024, 07:16

it said that it already exist

Mosh Ontong
24 Apr, 2024, 07:16
Mosh Ontong
24 Apr, 2024, 07:16

but does not appear the old

Meldiron
24 Apr, 2024, 07:18

Hmm, weird. Did you give the function same custom ID when creating?

Mosh Ontong
24 Apr, 2024, 07:21
Mosh Ontong
24 Apr, 2024, 07:21

what I did is that redeployment my function in cli

Mosh Ontong
24 Apr, 2024, 07:21

so it will be have the same id

Meldiron
24 Apr, 2024, 07:22

I see. Yeah, something got broken, because functions should never allow deleting active deployment. I can imagine that delete job also failed because of that, leaving leftover variables. I would suggest going to appwrite.json and changing function ID. Then deploying - that will create new function. On that, everything will work.

Mosh Ontong
24 Apr, 2024, 07:23

alright thanks matej

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