Skip to main content
Question

Streamsets API Credential not Work, return HTTP/1.1 403 Forbidden Error

  • 10 July 2024
  • 2 replies
  • 20 views

Hi

I am following the steps generate API Credential, and run the content in the green frame directly, however it return error like below.
 


 

curl -X GET https://eu01.hub.streamsets.com/security/rest/v1/currentUser -H "Content-Type:application/json" -H "X-Requested-By:curl" -H "X-SS-REST-CALL:true" -H "X-SS-App-Component-Id: $CRED_ID" -H "X-SS-App-Auth-Token: $CRED_TOKEN" -i
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    19  100    19    0     0     22      0 --:--:-- --:--:-- --:--:--    22HTTP/1.1 403 Forbidden
content-length: 19
content-type: text/plain
content-security-policy: object-src 'none';script-src 'self' https://cdn.cookielaw.org https://privacyportal.onetrust.com https://geolocation.onetrust.com https://app.intercom.io https://widget.intercom.io https://js.intercomcdn.com https://js.userflow.com https://cdn.userflow.com;style-src 'self' https://fonts.googleapis.com https://js.userflow.com https://cdn.userflow.com 'unsafe-inline';worker-src blob: ;base-uri 'self';frame-ancestors 'none';
x-frame-options: deny
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
referrer-policy: no-referrer
x-download-options: noopen
x-dns-prefetch-control: off
strict-transport-security: max-age=31536000; includeSubDomains;
permissions-policy: camera=(), microphone=(), geolocation=(), encrypted-media=(), payment=(), usb=()
date: Wed, 10 Jul 2024 08:57:14 GMT
server: istio-envoy

RBAC: access denied
 

2 replies

@Dolphin, if you are running the example script exactly as it is provided have you defined $CRED_ID and $CRED_TOKEN as variables prior to executing the curl statement? If not then that is why you are being denied access because those variables will be interpreted as no characters at all. If you have defined them try replacing them with the actual ID and token as a test to make sure they credentials do in fact work.

Hi as checked that is because proxy setting

Reply