Error: F_JW054F Authentication Required When Connecting to HVR Hub through API
Issue
When connecting to the HVR Hub API after changing the authentication method to SSL, the following error appears:
F_JW054F: Authentication required.
Environment
- HVR 6
- Authentication method: SSL
Resolution
To resolve this issue:
- Verify that SSL is configured correctly on the HVR Hub and that both the client and server support SSL connections.
- Include the bearer token in the
Authorizationheader. Do not use anAuthenticationheader. For example:TOKEN=$(curl -sk -X POST "https://<hub-host>:4341/auth/v1/password" \ -H 'Content-Type: application/json' \ -d '{"username":"<user>","password":"<pass>"}' | jq -r .access_token) curl -sk -X GET "https://<hub-host>:4341/api/latest/metering/download" \ -H "Authorization: Bearer $TOKEN" - Use HTTPS for both the token request and the subsequent API calls.
- Use the same host and port, such as
4341, for both the token requests and other API calls. - Confirm that the token hasn't expired. If necessary, generate a new one.
- For correct implementation details, see Fivetran REST API Examples.
If the issue persists, review sanitized request and response logs to identify differences between the successful token request and the failing API request.
Cause
This issue occurs when SSL is not configured correctly or when the API request does not include a valid bearer token in the Authorization request header.