Problem Note 69761: You might encounter the error "502: Bad Gateway" when loading project data and accessing a project in SAS® Model Studio
You might encounter an error when doing the following:
- opening a project in the SAS® Visual Forecasting user interface
- running the Batch API program
Here is the error that is displayed:
502: Bad Gateway
To work around this issue in the Batch API program, comment out the %ABORT statement (highlighted below) in the Load Project Data section of the code. Here is a sample code snippet:
/******************************************************************************
** Load project data...
******************************************************************************/
%put Load project data...;
proc http
method="PUT"
url="https://&host./forecastingGateway/projects/&projectId./dataState"
out=resp;
headers
"Authorization"="bearer &authtoken.";
DEBUG RESPONSE_BODY OUTPUT_TEXT;
run;
%put Response status: &SYS_PROCHTTP_STATUS_CODE;
%if not (&SYS_PROCHTTP_STATUS_CODE = 204) %then %do;
%put ERROR: An invalid response was received.;
/*%abort;*/
%end;
Click here to see the full Batch API code.
A hot fix is planned for this issue.
Operating System and Release Information
SAS System | SAS Visual Forecasting | Linux for x64 | 2022.1.4 | Stable 2023.03 | Viya | Viya platform |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2023-04-18 09:32:34 |
Date Created: | 2022-12-14 09:51:36 |