bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
102 stars 141 forks source link

Receiving Error not ok -- AxiosError: Request failed with status code 502 #1163

Open t3hchipmunk opened 6 months ago

t3hchipmunk commented 6 months ago

Expected behavior

The theme will upload and activate

Actual behavior

I receive an error message not ok -- AxiosError: Request failed with status code 502 and a json string back.

Steps to reproduce behavior

Use the command stencil push

Environment

Stencil-cli version stencil --version: 7.3.1

Node version node -v: v18.15.0

NPM version npm -v: 9.5.0

OS: Windows 10.0.19045.0

I had been doing frequent pushes over the last week. Today was the first time I had any hiccups. I do have available the full verbose log of the process if it would help to make that available.

Thanks!

t3hchipmunk commented 4 months ago

I meant to close this as the issue was on my end. I had made a change to my config.json that went against schema.json. I tried making what was supposed to be a string value into a bool value. The system will work during development, but when you push to BC, I assume, there is a validator that runs and fails. The message returned doesn't give much in the way of help, maybe that could be re-worked or the config.json is validated before push?

jairo-bc commented 3 months ago

@t3hchipmunk which value of config.json is giving you an error?

t3hchipmunk commented 3 months ago

In my case it was part of a theme, not the default config.json

mayrars commented 3 weeks ago

Same case I had an error in my cofig.json file @t3hchipmunk thanks!