Hi,
There was a migration towards axios for versions greater than v134.0.1. Before that we used superagent-proxy to pass traffic through the superagent-proxy module.
Via code:
require('superagent-proxy')(client.superagent);
So I tried to use the configuration as stated in the document by removing the superagent-proxy line.
This doesn't work in combination with a http proxy server (so https traffic over an http proxy server).
I had to change 2 files.
purecloud-platform-client-v2.js
FROM: var axios = require('axios');
TO: var axios = require('axios-https-proxy-fix');
purecloud-platform-client-v2/package.json (line 33)
FROM: "axios": "^0.27.2",
TO: "axios-https-proxy-fix": "^0.17.1",
I'm no expert but can you fix this in future releases so https request over http proxies can work again?
Hey there. I hope you've found a solution. If not, you should consider using a more specialized type of proxy, like proxies for market research, to ensure a more stable connection and better results. Those proxies helped us fix the same problem last month. We didn't expect that, tbh. Actually, you can never know what helps. Anyway, keep us updated if you find any other solutions or if the issue gets fixed in future releases. I'll be waiting for your reply.
I had to change following things to get this working again.
purecloud-platform-client-v2.js
FROM: var axios = require('axios');
TO: var axios = require('axios-https-proxy-fix');
purecloud-platform-client-v2/package.json (line 33)
FROM: "axios": "^0.27.2",
TO: "axios-https-proxy-fix": "^0.17.1",
I expected Genesys or the maintainer of this code to correct this in the main code so this manipulation doesn't need to take place after each new release...