hey is anyone here having issues with hitting thei...
# orm-help
e
hey is anyone here having issues with hitting their demo DB? I can't access mine, just keep getting timed out
d
Are you using the EU region?
e
US
d
Thanks, looking into it.
e
๐Ÿ‘ Thanks
some of my demo servers work, but not all
it says the service is healthy, and I can run
prisma deploy
successfully, but I can't hit it or even curl it.
d
Interesting, in same region? Some work and some don't? Can you confirm that the queries that you are making are similar in complexity?
Can you share an example curl that does not work? If not here then please use DM. Thanks!
d
Check if you receive a
Throttled-by
header with a value greater than 0.
e
here's a basic one:
Copy code
curl '<https://us1.prisma.sh/cameron-green-fec414/stratbook-pro/dev>' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: <https://us1.prisma.sh>' --data-binary '{"query":"query GET_USERS_QUERY {\n  users {\n    id\n    name\n  }\n}\n"}' --compressed
@dpetrick I don't know how to see the headers. here's the response:
Copy code
{
  "errors" : [ {
    "message" : "The call to the group [cameron-green-fec414~stratbook-pro@dev] timed out.",
    "requestId" : "us1:cjp4mygs7u77h0a07l73w2hga"
  } ]
but this one: to a different db works perfectly:
Copy code
curl '<https://us1.prisma.sh/cameron-green-fec414/sick-fits/dev>' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: <https://us1.prisma.sh>' --data-binary '{"query":"query {\n  users {\n    id\n    name\n    email\n  }\n}\n"}' --compressed
d
-v
with curl, but I tried it and it doesnโ€™t even hit the server. I will take a look
e
thx man
d
Works now
On a side note: secure your service with a secret.
๐Ÿ‘Œ 1
e
๐Ÿ‘ Yes thank you.
oh
umm @dpetrick the one to Stratbook-pro still is timing out
d
Is that US as well?
e
yes
d
Are you seeing the same error?
e
yes. it's still a timeout.
d
Do you get a request id back?
e
yes
Copy code
{
  "errors" : [ {
    "message" : "The call to the group [cameron-green-fec414~stratbook-pro@dev] timed out.",
    "requestId" : "us1:cjp4nlups00nb0b44xj0cb3ep"
  } ]
* Connection #0 to host us1.prisma.sh left intact
}
d
Thanks
It might be due to how the throttling works, if your result set is too big. Can you try a very simple query?
e
I've tried this:
Copy code
query GET_USERS_QUERY {
  users {
    id
    name
  }
}
there's between 2-0 users.
and i get the timeout.
I don't know how many there are, because I can't even access the data browser GUI on the site to test, it just keeps spinning.
so I have no idea what's in there.
d
For reasons unknown, the service is broken. I suggest just taking the schema and redeploying it to a different service.
e
well that's unfortunate. Thank you.
so i spun up a new one. and that's breaking too ๐Ÿ˜ข
can I DM you my datamodel.prisma? It seems right to me and didn't throw any errors, but that's all I can think the problem could be...
wait...
@dpetrick.... I apologize. It was unsurprisingly totally me
I had an enum and a type with the same name
d
Glad to hear it resolved itself :)
๐Ÿ‘ 1