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

AttributeError: module 'roundware.lib.api' has no attribute 'request_stream (testing Vagrant, admin-updates) #423

Open
sbenthall opened this issue Oct 23, 2022 · 4 comments

Comments

@sbenthall
Copy link

After successfully running ./runserver.sh on a vagrant on the admin-updates branch (see #422 for context)...

I'm trying the 'Basic Testing' steps recommended in these docs.

At the URL's provided, I'm getting Django error pages with tracebacks, as well as similar tracebacks in the command line logs.

http://localhost:8888/api/1/?operation=get_config&project_id=1

image

"Traceback (most recent call last):\n  File \"/vagrant/roundware/api1/views.py\", line 58, in catch_errors\n    function = operation_to_function(request.GET['operation'])\n  File \"/vagrant/roundware/api1/views.py\", line 79, in operation_to_function\n    \"request_stream\": api.request_stream,\nAttributeError: module 'roundware.lib.api' has no attribute 'request_stream'\n"

I get the same error for the following URLs:

http://localhost:8888/api/1/?operation=get_tags&session_id=2891
http://localhost:8888/api/1/?operation=request_stream&session_id=2891
http://localhost:8888/api/1/?operation=modify_stream&session_id=2892&tags=3,5,8
@hburgund
Copy link
Member

Ugh...old docs, no longer relevant.

But the good news is that there is a Postman collection with a ton of API calls that will help testing:

https://github.com/roundware/roundware-server/blob/develop/files/RW-api2.postman_collection.json

@sbenthall
Copy link
Author

Hmm.

Should I be focusing on the v2 docs, as here?
https://roundware.org/api/

@hburgund
Copy link
Member

yes!

@sbenthall
Copy link
Author

Great!

These URLs are all working as test calls:

http://127.0.0.1:8888/api/2/users/
http://127.0.0.1:8888/api/2/assets/
http://127.0.0.1:8888/api/2/speakers/

So I guess this is just a docs update issue.

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