Tried in a different project with a different fres...
# troubleshooting
e
Tried in a different project with a different freshdesk domain and API key, it works fine. Not sure where it went wrong with the first project?
a
Hi I am the author of the variant I had no idea anyone else is using it! I did see that error once but I couldn't replicate it and it went away after an hour or so. If you are able to trace the issue please let me know. FYI that variant is very intensive on your API key, don't share a key with that and another service
v
I wonder if that 403 has a message with it @Andy Carter, if you override validate_response you can get the content from the response and print it. A lot of times apis will tell you what's going on
e
Debugging and putting the breakpoint in the
RESTStream.validate_response
method is also a good option. The docs example uses
"justMyCode": false
that allow you to do it.
e
when using singer-io variant, got different error message:
Copy code
CRITICAL Error making request to Freshdesk API: GET <https://xxxxxx.freshdesk.com/api/v2/agents?per_page=100&page=1>: [403 - b'{"code":"access_denied","message":"You are not authorized to perform this action."}'] cmd_type=elb consumer=False name=tap-freshdesk producer=True stdio=stderr string_id=tap-freshdesk
2023-04-30T23:09:19.484777Z [error    ] Extractor failed
2023-04-30T23:09:19.484997Z [error    ] Block run completed.           block_type=ExtractLoadBlocks err=RunnerError('Extractor failed') exit_codes={<PluginType.EXTRACTORS: 'extractors'>: 1} set_number=0 success=False
a
@eli_c. can you make sure the account that the API key is generated for has the sufficient privileges for this action? Maybe an admin account?
e
Yes that part is clear. I was just reporting the error message in case you were not aware of.
The error didn’t appear when I worked on a freshdesk where i had enough privileges.
btw, I changed variant back to singer-io in yaml file, is there a command I can use for that?