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

Support/FIX for PHPIPAM 1.6 #79

Closed
lord-kyron opened this issue Jul 4, 2023 · 2 comments
Closed

Support/FIX for PHPIPAM 1.6 #79

lord-kyron opened this issue Jul 4, 2023 · 2 comments
Assignees

Comments

@lord-kyron
Copy link
Owner

lord-kyron commented Jul 4, 2023

Hi @pavel-z1 ,
Since I tried to use PHPIPAM 1.6 as per some requirements, it seems that the login is now broken.
I am getting this error:
HTTP/1.1 415 Unsupported Media Type

It seems related to me to this issue, as I've tested with CURL and I am getting the same results as described here:
phpipam/phpipam#1976
NOT working: curl -X POST --user apiuser:test1234 http://localhost/api/testapp/user/ -i
Working: curl -X POST -H "Content-Type: application/json" --user apiuser:test1234 http://localhost/api/testapp/user/ -i

Maybe there is something that needs to be added to the headers of the current request to support it.
I can see that this issue is an old one, but suddenly after the upgrade we started receiving this error.
Please, check it when you can and elaborate!
Thanks!

@lord-kyron lord-kyron changed the title Support PHPIPAM 1.6 and new API requirements Support/FIX for PHPIPAM 1.6 Jul 4, 2023
@pavel-z1
Copy link
Collaborator

pavel-z1 commented Jul 7, 2023

Hi @lord-kyron
I correctly understood that the problem was solved? What caused it?

@lord-kyron
Copy link
Owner Author

It seems PHPIPAM 1.6 is still not fully compatible with PHP 8.1 and we tried to use PHP 8.1
After we reverted to PHP 7.4 it is back to normal.

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