-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hi,
I am using a localhost URL that gives me a JSON response. The issue is when I am using the URL in my Node js application. var targetUrl = 'http://localhost:3000/suvs';
, I am getting an error:
"
{ status: 2004,
cause: 'An error occurred while streaming http://localhost:3000/suvs. : Connection refused',
message: 'Network error. The proxy cannot connect to host. Please try again later.',
timestamp: 1538521423798,
sessionId: '77229760-cda3-414e-8606-db67c5f60281' }
ERROR! StreamDataError {
type: 'An error occurred while streaming http://localhost:3000/suvs. : Connection refused',
message: 'Network error. The proxy cannot connect to host. Please try again later.',
status: 2004,
original:
{ status: 2004,
cause: 'An error occurred while streaming http://localhost:3000/suvs. : Connection refused',
message: 'Network error. The proxy cannot connect to host. Please try again later.',
timestamp: 1538521423798,
sessionId: '77229760-cda3-414e-8606-db67c5f60281' },
source: 'server' }
Closing the SSE Stream.
"
This works perfectly fine when I use the URL provided by you (stockmarket.streamdata.io/prices).
Can you please help me? Could it be because the URL you provided redirects to HTTPS and my URL is HTTP?