Been there! 401 authorisation required usually means your creds are right but the server’s not happy.
Double-check:
- Are you sending credentials in the right format? Basic Auth needs 'username:password' base64 encoded.
- If it’s token-based, is it in the 'Bearer' format?
Try curl with -v flag to see the full request/response. Sometimes the server gives hints in the response headers.
Double-check:
- Are you sending credentials in the right format? Basic Auth needs 'username:password' base64 encoded.
- If it’s token-based, is it in the 'Bearer' format?
Try curl with -v flag to see the full request/response. Sometimes the server gives hints in the response headers.
