ERR_HTTP_INVALID_HEADER_VALUE on POST

Solved
Highlighted
Shopify Partner
70 7 24

Hi folks,

 

I submitted my first app for review and it was rejected due to a ERR_HTTP_INVALID_HEADER_VALUE return code from the Node/Koa server on a POST of a form from within the app admin UI (based on the Shopify Node/React examples).

 

I performed multiple tests on multiple development stores myself - including after the rejection and don't see this problem, following the exact use case and data that the Shopify QA person had used.

 

Yet I do see the obvious return code and subsequent 500 in the logs for the QA session.

 

Firstly: Has anyone had a similar problem? That is either this anomaly, or one that you couldn't reproduce? If so, how did you go about finding out what was different without submitting and being penalised for not fixing the problem?

 

Secondly: There isn't any way to get in contact with the QA person for further questioning / information. What would you recommend in this situation?

 

Many thanks, GMKnight.

Store owner and app developer. Canada.
0 Likes
Highlighted
Shopify Partner
70 7 24

To update you...

 

I found the reason may have been because of this:

 

https://nodejs.org/api/http.html#http_http_validateheadervalue_name_value

 

res.setHeader(name, value) where value would be undefined.

 

However, I am currently at a loss as I have not managed to reproduce the error as yet and I am not setting any header myself.

 

I'll add anything as I find it as I'm sure I'm not the only one who has come across this.

 

GMKnight.

 

Store owner and app developer. Canada.
0 Likes
Highlighted
Shopify Staff
Shopify Staff
6 3 3

This is an accepted solution.

Hi G, 

 

I reached out to the app review team and they said that, if you can't replicate the issue and you do a test install and everything works fine, to resubmit and they will re-review.

 

Sorry I can't be more specific in isolating the issue for you.

 

Regards,

Kevin.

0 Likes
Highlighted
Shopify Partner
70 7 24

Thanks Kevin!

 

Let's try that - I'll add a note when I submit.

 

GMKnight.

Store owner and app developer. Canada.
0 Likes