cloudflare / pages-action

MIT License
473 stars 97 forks source link

[ERROR] ✘ [ERROR] Received a malformed response from the API #8

Closed lxxself closed 2 years ago

lxxself commented 2 years ago

An error occurs when using it sometime.

STDERR:

npm WARN exec The following package was not found and will be installed: wrangler@2
npm WARN deprecated rollup-plugin-inject@3.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
▲ [WARNING] Warning: Your working directory is a git repo and has uncommitted changes

  To silense this warning, pass in --commit-dirty=true

✘ [ERROR] ✘ [ERROR] Received a malformed response from the API

    <!DOCTYPE html>
    <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
    <!--[if I... (length = 7002)

    POST /accounts/***/pages/projects/wiki-xxl/file -> 502 Bad Gateway

    If you think this is a bug, please open an issue at: https://github.com/cloudflare/wrangler2/issues/new

npm notice 
npm notice New minor version of npm available! 8.5.5 -> 8.10.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.10.0>
npm notice Run `npm install -g npm@8.10.0` to update!
npm notice 
brycewray commented 2 years ago

I also always get the npm WARN exec The following package was not found and will be installed: wrangler@2 message, although it seems to proceed OK from there. I was advised to try installing the Wrangler 2 package (although this message seems to refer to something else), and that caused deploys to crash; after I removed it again, deploys went normally. So do the messages about wrangler@2 and rollup-plugin-inject@3.0.2 both represent issues with this action, or is the wrangler@2 message something else?

Edit: cc @GregBrimble

brycewray commented 2 years ago

I often get the following error, similar to what @lxxself reported:

✘ [ERROR] ✘ [ERROR] Received a malformed response from the API

    upstream connect error or disconnect/reset before headers. reset reason: connection termination
    POST /accounts/***/pages/projects/hugo-site/file -> 503 Service Unavailable

(hugo_site is the name of the repo where I’m using this Action.)

Also noted on the Discord:

WalshyDev commented 2 years ago

This should happen far less frequently (or not at all). If you get anymore issues please let us know here: https://github.com/cloudflare/wrangler2/issues/1108

Thank you :)