-
Notifications
You must be signed in to change notification settings - Fork 27
Unable to change server. #921
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
Comments
Running into this as well. |
Also running into this. As far as I could check, the I've manage to work around it by adding a key to the openapi.js file, even after the generation has been done, but this is not ideal: |
Running into this as well, I agree that |
You can discourage it via interface design (i.e., similar to dangerouslySetInnerHtml for react), but i think it is an option that should be given to the end user. |
I am trying to use this: https://orkadocs.macstadium.com/reference/listvms
There isn't a public orka cluster, so the URL you need to use is your own private one for your own cluster. In the docs they are simply using
example.com
as an example. On the right, you can get it to generate code for you in different languages. When you select Node, it suggests that you use this library to generate a library for the API. I did that, but it doesn't work, because it is trying to send the requests toexample.com
. I checked the docs on how to change the server, but it doesn't seem to be working. Here's the code:This prints:
Followed by the error message. I'm clearly passing the correct URL to
orka.server()
, but as you can see, it makes no difference and it keeps usingexample.com
. This seems like a bug to me, as I seem to be doing everything in accordance with the documentation. I'm using version 6.1.2 and ideally this should be fixed and a new version released, but if there are any workarounds in the meantime, please let me know.The text was updated successfully, but these errors were encountered: