Content-Length: 256768 | pFad | https://github.com/coffeepenbit/bookstack/issues/7

82 POST method argument error · Issue #7 · coffeepenbit/bookstack · GitHub
Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

POST method argument error #7

Closed
GenTexX opened this issue Jan 12, 2023 · 6 comments
Closed

POST method argument error #7

GenTexX opened this issue Jan 12, 2023 · 6 comments

Comments

@GenTexX
Copy link

GenTexX commented Jan 12, 2023

I cannot call any post methods.

Installed with PIP
Version: 0.1.0b0

Error: TypeError: BookStack._create_api_method..request_method() takes 0 positional arguments but 1 was given

I don't know if I am doing something wrong, but it happens, even if i call the method from the readme?!

@MakusuB
Copy link

MakusuB commented Jan 27, 2023

Hi there,

same here. Exactly copied the example from readme, but got the same error as @GenTexX. I am using Python 3.10.

I am currently trying to fix it myself, but I'm still a beginner in Python.

@coffeepenbit
Copy link
Owner

I no longer use bookstack, but if you resolve the issue I will approve your pull request(s)

@MakusuB
Copy link

MakusuB commented Jan 28, 2023

found the problem: the git code works absolutely fine, but the python package itself has not been updated yet. the additions by Jacob Stevens are not included there. would you be so kind and update it @coffeepenbit? that would be great!

@coffeepenbit
Copy link
Owner

If i can find time I will do it.

Thanks notifying me.

@gbouthenot
Copy link

gbouthenot commented Mar 1, 2023

pip still has the outdated "0.1.0b0" version : https://pypi.org/project/bookstack/
Please upgrade !

After upgrading to master:

api.post_books_create({'name': 'Sample Book', 'description': 'Sample Description', 'tags': [{ 'name': 'Sample-Name', 'value': 'Sample-Value' }] })
{'error': {'message': 'The given data was invalid.', 'validation': {'name': ['The name field is required.']}, 'code': 422}}

I give up.

olivierIllogika added a commit to olivierIllogika/bookstack that referenced this issue Dec 12, 2023
coffeepenbit added a commit that referenced this issue Dec 18, 2023
this should fix #4 and #7; POST and GET requests now work for me anyway
@coffeepenbit
Copy link
Owner

Closing with PR #10 ; let me know if you run into anything

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

No branches or pull requests

4 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/coffeepenbit/bookstack/issues/7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy