hapijs / h2o2

Proxy handler for hapi.js
Other
165 stars 66 forks source link

mapUri : Failed to load h2o2 #97

Closed torloneg closed 5 years ago

torloneg commented 5 years ago

I'm trying to use mapUri to set an element in the header but the process comes out without a particular error. Removing the block the code runs

The error is :

Failed to load h2o2

node -v v12.6.0

'handler': { 'proxy': { mapUri: function (request) {

                    console.log('doing some additional stuff before redirecting');
                    return {
                        uri: 'https://some.upstream.service.com/'
                    };
                },
                'onResponse': onResponse,
lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.