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

auth: How do you specify SERVER_TIMEOUT_REQUEST? #239

Closed
cameronattard opened this issue Aug 7, 2019 · 2 comments
Closed

auth: How do you specify SERVER_TIMEOUT_REQUEST? #239

cameronattard opened this issue Aug 7, 2019 · 2 comments
Assignees

Comments

@cameronattard
Copy link
Contributor

cameronattard commented Aug 7, 2019

When setting SERVER_TIMEOUT_REQUEST as an environment variable with a value such as 60000, auth returns the following error: panic: interface conversion: interface {} is json.Number, not string. What is the correct way to configure this option?

@Jusshersmith
Copy link
Contributor

Jusshersmith commented Aug 7, 2019

Hey @cameronattard.

I believe it should be set as a time.Duration https://golang.org/pkg/time/#Duration, e.g: 5s. Here are the defaults we set:

TimeoutConfig: TimeoutConfig{
Write: 30 * time.Second,
Read: 30 * time.Second,
Request: 45 * time.Second,
},

I can also understand that that's not abundantly clear right now, so I apologise! I'll work on clearing that among other variables up.

@Jusshersmith Jusshersmith self-assigned this Aug 7, 2019
@Jusshersmith
Copy link
Contributor

#240 should have hopefully made the available configuration settings for sso_auth a little bit clearer! Please let us know if that's not the case!

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