You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do some internal api calls in a server-side node script which gets executed via the queue worker.
The api calls fail for the production environment as it is available only via https.
Instead of return _protocol in the getProtocol method, i tried return 'https' which worked for me.
Thats a quick and dirty fix which works for me but there might be a better way to do that.
The text was updated successfully, but these errors were encountered:
A env configuration option will be available in the next release, see the closing commit in develop branch. Changes are also in the dreamfactory repo here.
I do some internal api calls in a server-side node script which gets executed via the queue worker.
The api calls fail for the production environment as it is available only via https.
The protocol is set to http here:
df-script/src/Engines/NodeJs.php
Line 64 in 64136e7
...and the path to internal resources does not contain 'http://' or 'https://' so _protocol will be returned here:
df-script/src/Engines/NodeJs.php
Line 95 in 64136e7
...and firing the script via queue worker does not set the protocol to 'https' here:
df-script/src/Engines/NodeJs.php
Line 65 in 64136e7
Instead of return _protocol in the getProtocol method, i tried return 'https' which worked for me.
Thats a quick and dirty fix which works for me but there might be a better way to do that.
The text was updated successfully, but these errors were encountered: