New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source Gitlab: Explicitly state api_url
accepts URL without scheme (http
or https
)
#21143
Comments
api_url
accepts URL without scheme (http
or https`) api_url
accepts URL without scheme (http
or https
)
Hey @pgollangi ! Thanks for making this type of issue visible to us. I worked my way through the connector source code. I could confirm my first guess: In the source code I found the issue related part: (from streams.py in Index 40: @property
def url_base(self) -> str:
return f"https://{self.api_url}/api/v4/" It appaears, that your issue is related to a hard coded url prefix. From here, we have two options:
In my perception we should go for option one, since it does not result in a more complex Info/Instruction text which might be misleading or confusing for some users. What do you think @pgollangi ? I would like to wait for a feedback from an airbyte employee or maintainer (@yevhenii-ldv @ykurochkin) before I proceed. |
@juweins completely agree with you. It would be nice if option1 is implemented and accepts urls includes url scheme rather than confusing with bunch of instructions to use right url. option1 implementation should also take care of backward compatibly probably to continue to support existing URLs without schemes. I would rather choose to accepts any URL with out without scheme. that way the code works for existing urls configured. thoughts please. |
api_url
accepts URL without scheme (http
or https
) api_url
accepts URL without scheme (http
or https
)
Exactly, I agree with you and it should be backward compatible. There may be some investigations necessary in which way a possible solution (based on Opt 1) will affect the existing Gitlab connections.👍🏼 Do you want to propose a solution? Or can I give it a shot? 👍🏼 |
api_url
of source gitlab only accepts URL without scheme (http
orhttps
) which is not clearly stated.For example, if my gitlab instance is
https://gitlab.myorganization.com
, theapi_url
must begitlab.myorganization.com
, NOThttps://gitlab.myorganization.com
.I figured out this hard way. Since I was trying to configure gitlab source with self-managed instance, I was under impression that gitlab connector not able to reach my self manages gitlab instance behind vpn, though I'm on VPN (I'm running locally)
I was getting below error when I use
api_url
with HTTPS:I believe update is required at both
spec.json
and docs pageThe text was updated successfully, but these errors were encountered: