mitodl / mitxonline

BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

HubSpot ApiException: (409) #1618

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: MITXONLINE-2S8

ApiException: (409)
Reason: Conflict
HTTP response headers: HTTPHeaderDict({'Date': 'Tue, 16 May 2023 14:44:00 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Content-Length': '153', 'Connection': 'keep-alive', 'CF-Ray': '7c84656eb864078c-IAD', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload', 'Vary': 'origin, Accept-Encoding', 'CF-Cache-Status': 'DYNAMIC', 'Access-Control-Allow-Credentials': 'false', 'x-envoy-upstream-service-time': '52', 'x-evy-trace-listener': 'listener_https', '...
(10 additional frame(s) were not displayed)
...
  File "hubspot/crm/objects/api_client.py", line 345, in call_api
    return self.__call_api(
  File "hubspot/crm/objects/api_client.py", line 174, in __call_api
    response_data = self.request(
  File "hubspot/crm/objects/api_client.py", line 393, in request
    return self.rest_client.POST(url, query_params=query_params, headers=headers, post_params=post_params, _preload_content=_preload_content, _request_timeout=_request_timeout, body=body)
  File "hubspot/crm/objects/rest.py", line 206, in POST
    return self.request("POST", url, headers=headers, query_params=query_params, post_params=post_params, _preload_content=_preload_content, _request_timeout=_request_timeout, body=body)
  File "hubspot/crm/objects/rest.py", line 189, in request
    raise ApiException(http_resp=r)
collinpreston commented 1 year ago

I'm wondering if we're running into an issue when users navigate from Xpro to MITx Online (select one of the course links from https://micromasters.mit.edu/dedp/). Once at MITx Online they register their account and something goes wrong.