
same with commenting out some of the data

I recommend trying to get only 1 response. Maybe that's causing a confilct

Since the function is supposed to stop being executed when a response is returned

Right on - I removed the return statement and it's running right now

Yeah same error still and same logs

You're triggering the function from SDK?

How long does it run for?

from the appwrite console

however long I set the timeout to

Maybe you're running into the timeout then

Try setting it to like 2 minutes. I think that will be enough

I was wondering so I upped it to 5 minutes and same problem

Make sure to call return like return res.json()
.
Make sure you're only passing a single string to log()

Maybe it's really taking that long

He's not calling it with JSON, but I think it should be fine anyways?

I see multiple arguments being passed to log

Oh, yes, the latest line confused me 😅

Whoops about the logs, fixed those and added a return statement to the try block and timed out at 2 minutes - it's only like 2k documents with 10 attributes but I'll up it to 10 minutes and see what happens

@Steven @D5 appreciate the help guys - I make sure to bang my head on my keyboard at least a thousand times before asking for help but this 500 error was baffling me

No issues, don't hesitate to ask anything at any time! We will always try to help 😄

@conleyc86 This got solved from what I understand, true?

Yes! The function was too slow - indexing the ingested data and batching document creation/updating solved it - function runs in under a minute

Thanks again!

Also sorry for the slow reply - this is for a personal project just revisited it today.

[SOLVED] "Error Msg: Http invalid protocol" After my function runs successfully.
Recommended threads
- How much should I wait for Appwrite Func...
Here's my situation: 1. Deploy the function first 2. Add API key(other service) in env 3. Redeploy 4. The function still cannot recognize my API key. I think i...
- How can I check which version of node-ap...
Hi everyone, I deployed a Function on Appwrite with the following in my package.json: ```"dependencies": { "node-appwrite": "*" }``` Since Appwrite automat...
- Various Issues with Selfhosted Instance
When Creating sites, applications and messages i get different errors in Appwrite: When adding Site: Cannot access offset of type string on string When buildi...
