Legacy Dev Forum Posts

 View Only

Sign Up

Run API with Node.JS behind proxy not working

  • 1.  Run API with Node.JS behind proxy not working

    Posted 06-05-2025 19:20

    Hendrig.rumianto | 2018-11-01 08:54:16 UTC | #1

    Hi ,

    Im run APi behind Proxy, using Node.js

    step what 've done

    1. use latest API
    2. npm install superagent-proxy

    3, add code state on documentation const platformClient = require('purecloud-platform-client-v2');

    var client = purecloud-platform-client-v2.ApiClient.instance; require('superagent-proxy')(client.superagent); // Configure settings for your proxy here // Documentation: https://www.npmjs.com/package/proxy-agent client.proxy = { host: '172.1.1.100', port: 443, protocol: 'https', };

    i've got error

    error: uncaughtException: Cannot read property 'Request' of undefined


    tim.smith | 2018-11-01 14:28:24 UTC | #2

    Please provide more information about the error.


    system | 2018-12-02 14:28:24 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3874