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

pytion.exceptions.InvalidRequestURL when block_update() #23

Closed
lastorel opened this issue May 13, 2022 · 1 comment · Fixed by #25
Closed

pytion.exceptions.InvalidRequestURL when block_update() #23

lastorel opened this issue May 13, 2022 · 1 comment · Fixed by #25
Assignees
Labels
bug Something isn't working

Comments

@lastorel
Copy link
Owner

block.block_update(block_obj=b2) doesn't work properly
there is wrong order when self.obj is processed id is lost

2022-05-13 20:16:44,527 - pytion.query - INFO - Request patch https://api.notion.com/v1/blocks/
2022-05-13 20:16:44,527 - pytion.query - DEBUG - METHOD: PATCH
2022-05-13 20:16:44,527 - pytion.query - DEBUG - URL: https://api.notion.com/v1/blocks/
2022-05-13 20:16:44,527 - pytion.query - DEBUG - DATA: {'archived': False, 'to_do': {'rich_text': [{'type': 'text', 'text': {'content': 'Good bye', 'link': None}}], 'checked': True}}
2022-05-13 20:16:44,872 - pytion.query - DEBUG - STATUS CODE: 400
2022-05-13 20:16:44,873 - pytion.query - DEBUG - CONTENT: b'{"object":"error","status":400,"code":"invalid_request_url","message":"Invalid request URL."}'
@lastorel lastorel added the bug Something isn't working label May 13, 2022
@lastorel lastorel self-assigned this May 13, 2022
@lastorel
Copy link
Owner Author

  • add tests with rename an retype

lastorel added a commit that referenced this issue May 15, 2022
@lastorel lastorel mentioned this issue May 15, 2022
@lastorel lastorel linked a pull request May 15, 2022 that will close this issue
lastorel added a commit that referenced this issue May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant