most-nightfall-36645
07/11/2022, 12:20 PMrequests.exceptions.JSONDecodeError: [Errno Expecting value] <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 401 Unauthorized to perform this action.</title>
</head>
<body><h2>HTTP ERROR 401 Unauthorized to perform this action.</h2>
<table>
<tr><th>URI:</th><td>/entities</td></tr>
<tr><th>STATUS:</th><td>401</td></tr>
<tr><th>MESSAGE:</th><td>Unauthorized to perform this action.</td></tr>
<tr><th>SERVLET:</th><td>restliRequestHandler</td></tr>
</table>
<hr/><a href="<https://eclipse.org/jetty>">Powered by Jetty:// 9.4.46.v20220331</a><hr/>
</body>
</html>
The server reports a missing authentication token:
10:36:57.676 [qtp1830908236-57260] WARN c.d.a.a.AuthenticatorChain:70 - Authentication chain failed to resolve a valid authentication. Errors: [(com.datahub.authentication.authenticator.DataHubSystemAuthenticator,Failed to authenticate inbound request: Authorization header is missing 'Basic' prefix.), (com.datahub.authentication.authenticator.DataHubTokenAuthenticator,Failed to authenticate inbound request: Unable to verify the provided token.)]
This behaviour happens intermittently, where some jobs suceed and other fail, we havent changed our client or token between jobs, so I dont understand why the token is missing.
We host our deployment using EKS, we use MySQL as our datastore.
I have checked:
• RDS database connections and system resources
• Kafka system resource
• ES system resources
None of these are under contention.
I also check the node where the frontend and gms containers are running, both have plenty of free memory and cpu time.
I am wondering if this could be a bug, does anyone have any suggestions?most-nightfall-36645
07/11/2022, 12:20 PMv0.8.38
but have upgrade to v0.8.40
most-nightfall-36645
07/11/2022, 12:22 PMv0.8.40
incalculable-ocean-74010
07/11/2022, 3:32 PMdatahub
system user. We are looking into improving these auth errors.
cc @big-carpet-38439incalculable-ocean-74010
07/11/2022, 3:33 PMmost-nightfall-36645
07/11/2022, 4:20 PMconfig_dict = {
"source": {
"type": source,
"config": config,
**extra_config,
},
"sink": {
"type": "datahub-rest",
"config": {
"server": settings.DATAHUB_GMS_API_HOST,
"token": gms_token,
},
},
}
The pipeline is validated:
try:
pipeline = Pipeline.create(config_dict=config_dict)
except ValidationError as e:
click.echo(e, err=True)
raise
pipeline.run()
pipeline.raise_from_status(raise_warnings=strict_warnings)
return pipeline.pretty_print_summary(warnings_as_failure=strict_warnings)
big-carpet-38439
07/11/2022, 4:23 PMincalculable-ocean-74010
07/11/2022, 4:23 PMmost-nightfall-36645
07/12/2022, 3:06 PMincalculable-ocean-74010
07/12/2022, 7:55 PMmost-nightfall-36645
07/13/2022, 8:20 AMincalculable-ocean-74010
07/13/2022, 8:45 AMmost-nightfall-36645
07/13/2022, 8:48 AMmost-nightfall-36645
07/13/2022, 8:48 AMrough-spring-71950
10/18/2023, 4:33 PM