Good day! Im trying to make a connector which uses...
# ask-community-for-troubleshooting
r
Good day! Im trying to make a connector which uses Basic Authentication or Cookie-based Auth (I’m not sure which of the two it is). It’s the first time that I am making an Airbyte connector and I am having trouble coding this connector. The docs don’t provide a lot of information how basic auth works within the Airbyte CDK. I currently keep getting a
Copy code
401 Client Error: No authorization data present for url
Eventhough the link is correct and the given username and password are correct. Anybody an idea how I should code a Airbyte Basic Auth connector or what could be the problem?
s
Hey Ricardo, even though it's your first time, thanks for going through the effort of making a connector. 401 Client Error implies that the credentials you've passed onto the request are not correct. What specific API are you working with? Maybe there's some documentation that explains the causes of this error.
r
Hi Saj, the API I’m working with is from https://api.robinhq.com/. Which is a pretty hard API to code with, since it doesn’t have a lot of documentation as well.
s
It seems like the api documentation page is empty? https://api.robinhq.com/api/. Are you sure there is an API here that developers can interact with?
r
@Saj Dider (Airbyte) We also got this file from the company with some other documentation
Yes, the API is live and we are currently interacting with it still with a different ELT software, also with basic auth. So it should be able to work within Airbyte too I assume
@Saj Dider (Airbyte) But I’m not sure why it isn’t. Shall I share the source.py?
s
It should work with AIrbyte. You can share the source.py if you feel comfortable. Or if you have a fork somewhere, I can took at that as well.
Are you going to build a connector that supports all of those endpoints?
r
Thank you, here you have my source.py that I coded for now. I’m sorry that it’s a little bit of a mess.
Yes, I was planning on supporting all of those endpoints, but I currently am just testing with the accounts endpoint
s
API key and API secret are the same as username and password?
r
Yes, I believe so
Also, would you advise to make one connector for every endpoint since the earlier question?
Hi @Saj Dider (Airbyte) Were you able to take a look at my source.py?
s
@Ricardo de Deijn, I took a look at it but I didn't immediately see anything wrong with it. Also I think one connector makes sense (as opposed to one connector per endpoint).
r
Okay, thank you for your feedback!