fuzziebrain / suez

Configurable reverse proxy server to access external APIs from within Oracle Application Express, without needing to deal with common SSL certificate issues. IMPORTANT: Recommended for development use only!
MIT License
11 stars 3 forks source link

Error in execute RESTful Calling #10

Open jsreyesn opened 6 years ago

jsreyesn commented 6 years ago

Trying to execute RESTful Calling, following error is genereted:

"Error occured while trying to proxy to: typicode.localhost:3000/users"

Suez service is up. I attach config file and host file

hosts.txt settings.json.txt

RESTful Calling detail is:

fuzziebrain commented 6 years ago

@jsreyesn:

  1. Are you using Docker to Suez?
  2. Can I assume that you added the .txt extension only for the purpose of submitting this issue?
jsreyesn commented 6 years ago

Thanks for your answer

  1. Im not using Docker. Im using virtualbox with centOS 7 (using OXAR)
  2. Yes, that file show my hosts and settings configuration
jsreyesn commented 6 years ago

I followed the installation steps in a new virtual machine, but now it generates the following error:

Error: Can not find module 'express'

The machine has installed node.js v8.11.4

fuzziebrain commented 6 years ago

@jsreyesn Thanks for pointing out. I missed out one step in the installation document. After you clone the project, please change the working directory to the project folder. Run the command: npm install. Continue with the remaining steps. I will add a bug to the documentation and have that corrected.

As to your earlier question, please make sure that the file name is settings.json and it's placed in the config sub-directory. Also, I'd like to know how you are calling the REST service. Are you using curl?