Error Api internal error

Good morning, we are testing an integration via API and we are getting an error on the following endpoint:
/crm/v3/objects/contacts/3587101/associations/company/9673630276/contact_to_company

“status”: “error”,
“message”: “internal error”,
“correlationId”: “74c0a84e-99f9-4034-b3b1-87a50140a83e”

We did the tests in this environment and it did not give us an error.
Sandbox 1
sandbox-1.colppy.com21957969

When we hit this endpoint there is no error.
/crm/v3/objects/companies/9673630276/associations/contact/3587101/contact_to_company

When we try in our productive if you do not give an error.
Production environment data.
Colppy
colppy.com19877595

Hi, @JMarino :waving_hand: Thanks for reaching out. Can you link me to the documentation page and list the specific endpoint you are using, please? Is it Accounts Dashboard | HubSpot for example?

Best,

Jaycee

Also getting the same error when doing:

await hubspot.marketing.transactional.singleSendApi.sendEmail({ emailId: args.templateId, message: { to: args.to, bcc: args.bcc || [], cc: args.cc || [], replyTo: [] }, contactProperties: {}, customProperties: args.variables || {},})

Error: HTTP-Code: 500
Message: An error occurred.
Body: {"status":"error","message":"internal error","correlationId":"dba58996-cca8-4a9f-ba9d-c15556e03c9e"}
Headers: {"access-control-allow-credentials":"false","alt-svc":"h3=\":443\"; ma=86400, h3-29=\":443\...
 File "/app/node_modules/@hubspot/api-client/lib/codegen/marketing/transactional/apis/SingleSendApi.js", line 60, col 23, in SingleSendApiResponseProcessor.<anonymous>
 throw new exception_1.ApiException(response.httpStatusCode, "An error occurred.", body, response.headers);
 File "/app/node_modules/@hubspot/api-client/lib/codegen/marketing/transactional/apis/SingleSendApi.js", in Generator.next
 File "/app/node_modules/@hubspot/api-client/lib/codegen/marketing/transactional/apis/SingleSendApi.js", line 5, col 58, in fulfilled
 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
 File "node:internal/process/task_queues", line 96, col 5, in processTicksAndRejections 

I have the same issue when try to associate deal with compamy
https://api.hubapi.com/crm/v4/objects/deals/10642105128/associations/Companies/9634666050?hapikey=xxxxxxx xxxxxxxxx xxxxxxx
Ther response

HTTP 500

{
“status”: “error”,
“message”: “internal error”,
“correlationId”: “905d9a42-e792-4cb7-8bb5-403dff156706”
}

What can be reason of this?

Good evening, this endpoint is the one that returns an error.

curl --request PUT \
--url https://api.hubapi.com/crm/v3/objects/contacts/14501/associations/company/9018905466/contact_to_company \
--header 'authorization: Bearer xxxxxxxxxxxxxxxxxxx'

In the test environment the endpoint works.
Entorno de pruebas
entorno-de-pruebas-1.colppy.com21957969

While in the production environment it does give an error.
{“status”:“error”,“message”:“internal error”,“correlationId”:“4caf46a3-27ff-4f10-ace1-9c948259272e”}

Production environment
colppy.com19877595

The strangest thing that this endpoint does work in production

curl --request PUT \
--url https://api.hubapi.com/crm/v3/objects/companies/9018905466/associations/contact/14501/contact_to_company \
--header 'authorization: Bearer xxxxxxxxxxxxxxxxxxx'

Are we missing any configuration?
Why does it give us an error in one environment and not in the other?

Thank you