Skip to content

Commit

Permalink
Merge branch 'master' into refactor/SK-1194
Browse files Browse the repository at this point in the history
Update API call to /sessions in APIClient
  • Loading branch information
benjaminastrand committed Nov 29, 2024
2 parents 3574d77 + 343088c commit e8d0eac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fedn/network/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def start_session(
return response.json()

response = requests.post(
self._get_url_api_v1("sessions"),
self._get_url_api_v1("sessions/"),
json={
"session_id": id,
"session_config": {
Expand Down
2 changes: 1 addition & 1 deletion fedn/network/clients/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def listen_to_task_stream(self, client_name: str, client_id: str, callback: Call
callback(request)

except grpc.RpcError as e:
self.logger.error(f"GRPC (TaskStream): An error occurred: {e}")
logger.error(f"GRPC (TaskStream): An error occurred: {e}")
return self._handle_grpc_error(e, "TaskStream", lambda: self.listen_to_task_stream(client_name, client_id, callback))
except Exception as e:
logger.error(f"GRPC (TaskStream): An error occurred: {e}")
Expand Down

0 comments on commit e8d0eac

Please sign in to comment.