Heroku fetching api data : Error 414 URI too long

January 10, 2020, at 7:20 PM

I have a nodejs server deployed on heorku (hosting provider) and i'm receiving a 414 URI Too Long error.

The weird thing is that when I start the server the api request is getting handeld but after a longer period of the the error occurs.

This is the API: https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=50&page=1&sparkline=false&price_change_percentage=1h,24h,7d,30d,200d,1y

I'm requesting every 2 minutes so that should not be a problem.

This is how I get the data:

var req = unirest("GET", "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=50&page=1&sparkline=false&price_change_percentage=1h,24h,7d,30d,200d,1y");
        "page": "1",
        "per_page": "50",
        "order": "market_cap_desc",
        "vs_currency": "usd"

My 2 cents: it probably has to do with the size of the request. Heroku states "Headers are restricted to 8192 bytes per line (and 1000 bytes for the header name" and "The request line of the HTTP request is limited to 8192 bytes". But it is weird that the request work fine the first dozen requests

Biometric push in Nodejs

Biometric push in Nodejs

In documentation of Biometric, initialization of information exchangeTelling

Prevent webpack 4 pug loader from compiling mixin files

Prevent webpack 4 pug loader from compiling mixin files

I'm really new to Webpack 4 and found a configuration issue I can not resolve