[bug] GET /companies/{company id}/contactinfo broken?

/companies/{company id}/contactinfo seems to return a broken string

Hi @elton.becer, could you provide me with the trace id from the response header so I can investigate what you’re seeing? Thanks

Im only getting these headers:
content-type,
content-length,
connection,
content-encoding
cache-control
expires
set-cookie
etag
date
access-control-allow-origin
strict-transport-security
x-xss-protection
x-content-type-options
referrer-policy
x-frame-options
permissions-policy
reporting-endpoints
content-security-policy

Could you provide the entire cURL so I can check what’s wrong?

The following works for me:

curl --request GET \
  --url https://api.awork.com/api/v1/companies/03d2b5a2-.../contactinfo \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer ey...' \
  --header 'Content-Type: application/json'

I found the mistake.
I was calling:
\https://api.awork.com/api/companies/bd4de128-19ca-…/contactinfo
Instead of:
https://api.awork.com/api/v1/companies/bd4de128-19ca-..../contactinfo

but this should still not return 200 as a status right?

In case you use a different endpoint that does not exist, it will likely match a different route that returns a standard page on our website or app and returns a HTML content.

Thank you for the incredibly quick response.

1 „Gefällt mir“