# Error Post "https://api.fly.io/graphql": unexpected EOF

**URL:** <https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013>\
**Category:** Questions / Help\
**Created:** [July 16, 2022, 12:03pm UTC](https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013 "2022-07-16T12:03:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![williamyoung](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@williamyoung](https://community.fly.io/u/williamyoung)\
**Post date:** [July 16, 2022, 12:03pm UTC](https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013/1 "2022-07-16T12:03:28Z")

</div>

When running `fly deploy` I get this unexpected EOF. Using `--verbose` doesn’t shed any more light. I’ve also tried deleting everything and restarting, same results. Any help? I see others have seen this error when [Fly.io](http://Fly.io)’s infrastructure down but the status page shows all green.

```auto
image: registry.fly.io/flowend-be:deployment-1657972792
image size: 1.0 GB
==> Creating release
Error Post "https://api.fly.io/graphql": unexpected EOF

```

Edit: When I have a `release_command` it runs, but then the main program never starts, it ends with:

```auto
 2022-07-16T11:57:31.159 app[946846f1] ord [info] No migrations to apply.
2022-07-16T11:57:31.620 app[946846f1] ord [info] Main child exited normally with code: 0
2022-07-16T11:57:31.620 app[946846f1] ord [info] Starting clean up. 

```

I think this may be an indication that it is an error with the `Dockerfile`.

---

<div class="post-metadata">

**Author:** ![greg](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/greg/32/2119_2.png) [@greg](https://community.fly.io/u/greg)\
**Post date:** [July 17, 2022, 4:52pm UTC](https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013/2 "2022-07-17T16:52:32Z")

</div>

Strange. Are you able to post the Dockerfile to see if anyone can spot an issue with it? I’m not sure that is the issue here though. Given that shortened output, it reads like it _was_ able to build an image using that Dockerfile. But failed at the subsequent step, _releasing_ it. Hmm.

Do you get that EOF intermittently or consistently?

Out of interest, what do you see when you visit the Fly debug page? If you are able to see all the debug headers etc that would show at least _that_ part of the networking from your location is fine (it will respond from the closest region): [https://debug.fly.dev/](https://debug.fly.dev/)

---

<div class="post-metadata">

**Author:** ![dsiddharth](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/dsiddharth/32/3757_2.png) [@dsiddharth](https://community.fly.io/u/dsiddharth)\
**Post date:** [July 18, 2022, 4:18pm UTC](https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013/3 "2022-07-18T16:18:20Z")

</div>

I’m hitting the same issue when deploying through Github Actions:

```auto
...
979117655379: Layer already exists
92a02f6117f5: Layer already exists
deployment-1658158818: digest: sha256:524d2db890c5990cf6ca4845f809128b0b88d5eb25b1842e0f553fc644cfdf84 size: 3263
--> Pushing image done
image: registry.fly.io/hathora-coordinator-dev:deployment-1658158818
image size: 963 MB
==> Creating release
Error Post "https://api.fly.io/graphql": unexpected EOF
Error: Process completed with exit code 1.

```

This started a few days ago and was only resolved by deleting the app and recreating it.

---

<div class="post-metadata">

**Author:** ![greg](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/greg/32/2119_2.png) [@greg](https://community.fly.io/u/greg)\
**Post date:** [July 18, 2022, 8:14pm UTC](https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013/4 "2022-07-18T20:14:04Z")

</div>

Seems like Fly had some issues since other people reported issues too related to the API/releasing:

> [@error connecting to docker](https://community.fly.io/t/error-connecting-to-docker/6038/9):
>
> hey all, I just wanted to let you know that we were able to trace these request IDs to changes that we made today that were causing issues with the remote builders. We’re working on rolling out a fix right now.

Sounds like they’ve sorted them.

---

<div class="post-metadata">

**Author:** ![williamyoung](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@williamyoung](https://community.fly.io/u/williamyoung)\
**Post date:** [July 19, 2022, 10:34pm UTC](https://community.fly.io/t/error-post-https-api-fly-io-graphql-unexpected-eof/6013/5 "2022-07-19T22:34:53Z")

</div>

In the end the only thing that fixed it was remaking the docker file and config file, delete all the apps and relaunch.
