menu

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

Channels
Team

Docker deployment, 504 An error occured with your deployment, but no details in…

October 6, 2018 at 3:40pm

Docker deployment, 504 An error occured with your deployment, but no details in logs

October 6, 2018 at 3:40pm (Edited 1 year ago)

This happens when the request is made after default 1min timeout. Only the first request fails, subsequent ones go through.

Dockerfile:

FROM hasura/graphql-engine:v1.0.0-alpha23

Docker image is Hasura GraphQL Engine (https://github.com/hasura/graphql-engine) connecting to Postgres on Heroku.

now.json:

{
"name": "hge",
"alias": "hge",
"env": {
"HASURA_GRAPHQL_DATABASE_URL": "@dburl"
}
}

Some outputs:

$ curl -i https://hge-ajzvuatzsk.now.sh/v1alpha1/graphql -d'{"query":"{test{id name}}"}'
HTTP/2 504
date: Sat, 06 Oct 2018 15:23:05 GMT
content-type: text/plain
content-length: 38
set-cookie: __cfduid=df546c43cf4ac2cd2884bab0ebf01976a1538839373; expires=Sun, 06-Oct-19 15:22:53 GMT; path=/; domain=.hge-ajzvuatzsk.now.sh; HttpOnly
etag: "5b7b6f78-26"
vary: Accept
x-now-trace: sfo1
now: 1
cache-control: s-maxage=0
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 46592043bb6d8aa9-BOM
An error occured with your deployment

Immediately after that:

$ curl -i https://hge-ajzvuatzsk.now.sh/v1alpha1/graphql -d'{"query":"{test{id name}}"}'
HTTP/2 200
date: Sat, 06 Oct 2018 15:23:09 GMT
content-type: application/json; charset=utf-8
set-cookie: __cfduid=d4b90a0c1a7b103a4e020ff2d90c0ca951538839387; expires=Sun, 06-Oct-19 15:23:07 GMT; path=/; domain=.hge-ajzvuatzsk.now.sh; HttpOnly
x-now-trace: sfo1
now: 1
cache-control: s-maxage=0
x-now-id: 5g99q-1538839388509-5ANPeiJfCS6WBsBgDJGm8CNL
x-now-instance: 416100103
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 4659209c98988a67-BOM
{"data":{"test":[{"id":1,"name":"aa"}, {"id":2,"name":"bb"}, {"id":3,"name":"cc"}, {"id":4,"name":"dd"}]}}

Logs around the same time:

2018-10-06T15:23:05.338Z 𝚫 Discovered your application listening on port 8080
2018-10-06T15:23:09.105Z {"timestamp":"2018-10-06T15:23:08.895+0000","level":"info","type":"http-log","detail":{"status":200,"query_hash":"a29bdc7852eb7b91541ae3aecc4f3c28da9d1cf9","http_version":"HTTP/1.1","query_execution_time":0.359830098,"request_id":null,"url":"/v1alpha1/graphql","hasura_metadata":null,"ip":"106.51.19.53","response_size":106,"method":"POST","hasura_role":null,"detail":null}}

Any help is appreciated.

PS: Love the product ❤️, using it for internal tools/demos. (I am an Engineer at Hasura)


February 26, 2020 at 1:20am

Are there news about this topic? I'd love to use the now infrastructure to host my Hasura project. For the database I am using a managed database from digital ocean at the moment

  • reply
  • like
private
This channel has been archived