Skip to content
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

extra forward slash in API call #4924

Closed
slate17 opened this issue Mar 3, 2023 · 6 comments
Closed

extra forward slash in API call #4924

slate17 opened this issue Mar 3, 2023 · 6 comments

Comments

@slate17
Copy link

slate17 commented Mar 3, 2023

Hi,

I've just installed a Standalone Instance of Greenlight v3.

No matter how i enter the BIGBLUEBUTTON_ENDPOINT in the .env-file (with or without trailing slash / with or without /api at the end)
Greenlight is always adding an extra forward slashes after the Endpoint.

like this:
https://app.bbbserver.de/de/bbb-integration/bigbluebutton/api//create?guestPolicy=ALWAYS_ACCEPT(...)

when I copy the URL, remove the extra slash and then make the call, it is successful.

Is it a bug or am I doing something wrong?
Hope someone can help me.

-slate

@farhatahmad
Copy link
Collaborator

Is this version 3.0.1? If so, what format do you have the url in your .env? Are you restarting Greenlight after making changes?

I set my url to BIGBLUEBUTTON_ENDPOINT=https://app.bbbserver.de/de/bbb-integration/bigbluebutton/api/ and it seems to work fine

@slate17
Copy link
Author

slate17 commented Mar 3, 2023

Yes, 3.0.1
I used gl-install.sh

I did docker-compose down and docker-compose up after every change. I did try various formats including the one you have suggested.
Weird.

-slate

@farhatahmad
Copy link
Collaborator

farhatahmad commented Mar 3, 2023

Ah wait, I see that now https://dev26.bigbluebutton.org/bigbluebutton/api//create?guestPolicy=ASK_MODERATOR&...

I'll take a look into this

@farhatahmad
Copy link
Collaborator

This seems to have been a problem for a while now, but the request should still go through. Is yours failing?

I've fixed it here: https://github.com/mconf/bigbluebutton-api-ruby/pull/60/files

@slate17
Copy link
Author

slate17 commented Mar 4, 2023

Yeah, it is failing. I am getting 404 Response. If I remove the extra slash it works.

@slate17
Copy link
Author

slate17 commented Apr 3, 2023

Updated to 3.0.2, still the same.

#5070 is the same Problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants