Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on making internal API calls when script gets executed by queue #3

Closed
tizzyapunkt opened this issue Aug 31, 2017 · 1 comment
Closed

Comments

@tizzyapunkt
Copy link

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:

$protocol = "'http'";

...and the path to internal resources does not contain 'http://' or 'https://' so _protocol will be returned here:

function getProtocol(path) {

...and firing the script via queue worker does not set the protocol to 'https' here:

$https = array_get($_SERVER, '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.

@leehicks
Copy link

leehicks commented Sep 7, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants