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

Can't get token from openTAXII server #219

Open
fear-the-reaper opened this issue Feb 7, 2022 · 4 comments
Open

Can't get token from openTAXII server #219

fear-the-reaper opened this issue Feb 7, 2022 · 4 comments

Comments

@fear-the-reaper
Copy link

I've been trying to test an openTAXII server to push a bundle been using this as a reference. However whenever I tried getting the jwt token it gives me this
image
I even tried to do it in the 9000 port but the error persists. I also edited the data-configuration.yml file and Dockerfile. Please help thanks!!

@erwin-eiq
Copy link
Contributor

Thank you for your bugreport. I really appreciate it when people take the time to create an issue when they find bugs.

I'll look at it as soon as possible, however I'm currently quite busy finishing up #222. Once that is done, I plan to go through all the open issues and fix them.

@fear-the-reaper
Copy link
Author

Sure take your time

@erwin-eiq
Copy link
Contributor

erwin-eiq commented Apr 11, 2022

Update: this was caused by https://werkzeug.palletsprojects.com/en/2.1.x/changes/#version-2-1-0. Specifically this bit:

Request.get_json() will raise a 400 BadRequest error if the Content-Type header is not application/json. This makes a very common source of confusion more visible.

We depended on the previous behaviour where it returned None. I'll modify the code to cover both cases.

Thanks again for reporting this!

@erwin-eiq
Copy link
Contributor

Hm... it seems I've drawn my conclusion too quickly. You're already getting a 401. The above issue would have gotten you a 400 instead. Seperate issue apparently 🤔 I'll keep digging.

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