IBM Support

Curl command used to run a model returns a 10 minute timeout and 504 Bad Gateway error.

Troubleshooting


Problem

Curl command used to run a model returns a  10 minute timeout and 504 Bad Gateway error.  If the script takes more than 10 minutes to calculate the scoring result the
REST call will fail, returning a 504 Bad Gateway error.

Symptom

10 minute timeout and 504 Bad Gateway error

Cause

If the script takes more than 10 minutes to calculate the scoring result the
REST call will fail, returning a 504 Bad Gateway error.

Environment

WSL 1.2.3.1 on Linux x86_64

Diagnosing The Problem

10 minute timeout will be seen along with a 504 Bad Gateway error

Resolving The Problem

The facility to run scripts as web services is designed to enable online scoring where custom code can run that invokes
one or more existing models to provide a consolidated scoring result. The call to the web service is synchronous, returning
only when the scoring result is available. If the script takes more than 10 minutes to calculate the scoring result the
REST call will fail, returning a 504 Bad Gateway error.

Scripts that are taking longer than 10 minutes to complete, especially those that aren't providing online scoring,
should be run as jobs instead of as web services.

Document Location

Worldwide


[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGWL","label":"IBM Watson Studio Local"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"1.2.3.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

More support for:
IBM Watson Studio Local

Software version:
1.2.3.1

Operating system(s):
Linux

Document number:
1115961

Modified date:
30 December 2019

UID

ibm11115961