Box connector in streamsets
Hello,
I'm setting up a box connector in streamsets using HTTP client (so I can load files in a box folder to postgres)
I setup an app in box developer console and got the OAuth2 client id and secret.
I provided the client id and secret in streamsets and set the token url as https://app.box.com/api/oauth2/token
I set the resource ur in streamsets as https://api.box.com/2.0/folders//items
When I preview the streamsets connector I get the following error:
HTTP_01 - Error fetching resource. Status: 404 Reason: Not Found : {"type":"error","status":404,"code":"not_found","context_info":{"errors":[{"reason":"invalid_parameter","name":"folder","message":"Invalid value ''. 'folder' with value '' not found"}]},"help_url":"http:\/\/developers.box.com\/docs\/#errors","message":"Not Found","request_id":"qrj3yxfv0eup7sl1"}
When I use the OAuth authentication and header authorization with bearer token I'm able to see the folder contents.
Only when I change it tot OAuth2 with client id and secret the above error is shown.
Can someone please review and let me know what is wrong with the OAuth2 setup?
Please sign in to leave a comment.
Comments
0 comments