You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a EC2 instance, with XRAY daemon installed in it. Also, policy AWSXRayDaemonWriteAccess is attached to the role.
Simple Django application deployed to EC2, with default xray configuration.
In the application logs I see:
File "/usr/local/lib/python3.9/site-packages/botocore/httpsession.py", line 352, in send raise EndpointConnectionError(endpoint_url=request.url, error=e) botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://127.0.0.1:2000/GetSamplingRules"
I have the following configurations in django app:
XRAY_RECORDER = {
'AWS_XRAY_CONTEXT_MISSING': 'LOG_ERROR',
'AWS_XRAY_TRACING_NAME': 'My application',
'PLUGINS': ('EC2Plugin', 'ECSPlugin'),
}
Why the application fails to connect to Xray daemon?
Also, When I execute curl 'http://127.0.0.1:2000' I got accessdeniedexception, why does it happen?
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in next 7 days. Thank you for your contributions.
I have a EC2 instance, with XRAY daemon installed in it. Also, policy AWSXRayDaemonWriteAccess is attached to the role.
Simple Django application deployed to EC2, with default xray configuration.
In the application logs I see:
File "/usr/local/lib/python3.9/site-packages/botocore/httpsession.py", line 352, in send raise EndpointConnectionError(endpoint_url=request.url, error=e) botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://127.0.0.1:2000/GetSamplingRules"
I have the following configurations in django app:
XRAY_RECORDER = {
'AWS_XRAY_CONTEXT_MISSING': 'LOG_ERROR',
'AWS_XRAY_TRACING_NAME': 'My application',
'PLUGINS': ('EC2Plugin', 'ECSPlugin'),
}
Why the application fails to connect to Xray daemon?
Also, When I execute
curl 'http://127.0.0.1:2000'
I got accessdeniedexception, why does it happen?The text was updated successfully, but these errors were encountered: