Hi, I’ve tried upgrading my Prisma instance from v...
# orm-help
k
Hi, I’ve tried upgrading my Prisma instance from v1.25 to v.1.27 hosted on Heroku and ended up probably breaking stuff. New `prisma deploy`s result in
ERROR: GraphQL Error (Code: 503)
and nothing really works from the CLI. The server still works fine though. Did anyone had a similar issue?
I’ve followed the steps from https://github.com/prisma/prisma-cloud-feedback/issues/202#issuecomment-414095090 when upgrading the Heroku instance.
Full error message:
Copy code
ERROR: GraphQL Error (Code: 503)

{
  "error": "<!DOCTYPE html>\n\t<html>\n\t  <head>\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\t\t<meta charset=\"utf-8\">\n\t\t<title>Application Error</title>\n\t\t<style media=\"screen\">\n\t\t  html,body,iframe {\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t  }\n\t\t  html,body {\n\t\t\theight: 100%;\n\t\t\toverflow: hidden;\n\t\t  }\n\t\t  iframe {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tborder: 0;\n\t\t  }\n\t\t</style>\n\t  </head>\n\t  <body>\n\t\t<iframe src=\"//www.herokucdn.com/error-pages/application-error.html\"></iframe>\n\t  </body>\n\t</html>",
  "status": 503
}
d
This is not a descriptive error. You need to check the dyno logs for prisma errors.
k
I thought so but there are no error logs, just standard connection ones
Or actually…
Copy code
2019-03-01T11:54:19.348650+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=POST path="/management" host=<http://awdis-prisma.herokuapp.com|awdis-prisma.herokuapp.com> request_id=96d815c5-5260-4c76-aec9-5ae1425880e4 fwd="77.96.237.217" dyno=web.1 connect=0ms service=30001ms status=503 bytes=0 protocol=https
H12 errors are when requests take more than 30 seconds to complete: https://devcenter.heroku.com/articles/error-codes#h12-request-timeout
I’ve tried downgrading to v1.25 and all works fine
Let’s see if that is the case with other versions…
If it possible that:
22c83ce: The request timeout for the Prisma Servers has been bumped to 600 seconds to enable running long queries.
causes the issue? I believe that Heroku terminates requests after 30 seconds.
Yup, might be that change, v1.26.5 works perfectly. Gonna fill a github issue
d
Thanks for reporting!
k
Here’s a link to the issue: https://github.com/prisma/prisma/issues/4115
h
@dpetrick Can we make this change only in the prisma-heroku image? Otherwise this might break some other workflows.
d
No.
a
surprisingly 1.26.5 version isn't avaible at all. moved to 1.26.6
hopefully it works
Didn't work for me