Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

xain_sdk.http.ApiError #439

@sagar-equinix

Description

@sagar-equinix
2020-07-01 00:44:35.378 INFO     >>> GET http://ec2-ip:8081/rendez_vous
2020-07-01 00:44:35.390 INFO     <<< GET http://ec2-ip:8081/rendez_vous [200]
2020-07-01 00:44:35.390 DEBUG    content-type: application/json
2020-07-01 00:44:35.390 DEBUG    content-length: 22
2020-07-01 00:44:35.391 DEBUG    date: Wed, 01 Jul 2020 00:44:35 GMT
2020-07-01 00:44:35.391 INFO     {
    "id": null,
    "ok": false
}
2020-07-01 00:44:35.392 DEBUG    heartbeat thread starting
2020-07-01 00:44:35.392 INFO     waiting for being selected
2020-07-01 00:44:35.393 INFO     >>> GET http://ec2-ip:8081/heartbeat/None
2020-07-01 00:44:35.402 WARNING  <<< GET http://ec2-ip:8081/heartbeat/None [404]
2020-07-01 00:44:35.402 DEBUG    content-length: 0
2020-07-01 00:44:35.402 DEBUG    date: Wed, 01 Jul 2020 00:44:35 GMT
2020-07-01 00:44:35.403 ERROR    error while sending heartbeat, exiting
Traceback (most recent call last):
  File "/home/xain-fl/python/sdk/xain_sdk/participant.py", line 227, in run
    self.heartbeat()
  File "/home/xain-fl/python/sdk/xain_sdk/participant.py", line 238, in heartbeat
    resp = self.coordinator_client.heartbeat()
  File "/home/xain-fl/python/sdk/xain_sdk/http.py", line 117, in heartbeat
    return json.loads(self.http.get(f"heartbeat/{self.id}").text)
  File "/home/xain-fl/python/sdk/xain_sdk/http.py", line 68, in get
    return self.send(req, status=status)
  File "/home/xain-fl/python/sdk/xain_sdk/http.py", line 84, in send
    self.check_response(resp, status=status)
  File "/home/xain-fl/python/sdk/xain_sdk/http.py", line 90, in check_response
    raise ApiError(resp)
xain_sdk.http.ApiError
2020-07-01 00:44:35.404 INFO     state changed: DONE

I am trying to run participant and coordinator on AWS instances. I am getting this api error when trying to run the participant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions