nuxt-community / proxy-module

The one-liner node.js http-proxy middleware solution for Nuxt 2 using http-proxy-middleware
MIT License
413 stars 26 forks source link

HPM error occured #98

Closed stephenjason89 closed 2 years ago

stephenjason89 commented 3 years ago

[HPM] Error occurred while trying to proxy request /api/ntp from localhost:3000 to http://localhost:8000 (HPE_INVALID_CONSTANT) (https://nodejs.org/api/errors.html#errors_common_system_errors)

This is while trying to just access a page which returns an unix timestamp. Weird thing is it is like a switch. It works then after a refresh it won't work, then refresh again, it won't work again, refresh again then it work, refresh again then it don't work again.

image image

I mean it is really consistent, every other request throws an error this is my laravel route

Route::get('ntp', function () { echo (string) round($_SERVER['REQUEST_TIME_FLOAT'] * 1000); });

If i visit it directly using localhost:8000 then there are no problems

abas1991 commented 2 years ago

+1