Hi @swach
The JobHistoryStatisticsGathering.fmw contains an HTTPCaller which is making a request to one of FME Server's REST API endpoints to retrieve the complete job history. It looks like the problem, in this case, is a mistake in the URL is called as it should not contain /fmeserver/.
In the workspace, the HTTPCaller is contained within the custom transformer JobHistoryReader. This transformer takes the FME Parameter $(FME_SERVER_WEB_URL) as the Server URL and this is used to form the beginning of the request URL. Have you made any modifications to the workspace, specifically the FME Server URL value in that custom transformer?
Thanks, I was trying to run it locally and that fixed it. My other server is having the same issue but when I fix the url it still doesn't work:
Terminator (TestFactory): Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.
Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'
Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.
Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'
Thanks, I was trying to run it locally and that fixed it. My other server is having the same issue but when I fix the url it still doesn't work:
Terminator (TestFactory): Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.
Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'
Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.
Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'
Hi, I am also experiencing the same error as described above when running JobHistoryStatisticsGathering.
I am using FME Server 2021.2.3
The log contains:
2023-10-13 12:09:58 | JobHistoryReader_HTTPCaller (HTTPFactory): An error occurred while accessing the URL 'https://hostname/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'
It also shows error code 401
I am running workspace as admin
Any suggestion?
I have the same problem in v.2024.0.1. Does anyone know a solution?