Calling node js project api hosted in glitch thru php

Hello guys im newbie here,

So basically i imported my node js api here on glitch and when i call the api thru postman it is working but when i call the api thru php it doesnt work. Its stuck in the message “to keep Glitch fast for everyone, inactive projects go to sleep and wake up on request”

Am i missing something?

Note: when i run the api in the localhost and call it thru php its working.

Thank you in advance

Yup! There’s an undocumented thing about Glitch that you have to set a User-Agent request header. Sorry that you had to ask and wait for this answer.

2 Likes

seriously?! i spent 8 hrs resolving this one! i just tried it and it worked! thank you kind sir!!!