question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New install working, but cannot save any settings in the web interface (http 400)

See original GitHub issue

Impacted versions

  • Modoboa: 1.10.2
  • installer used: Yes/
  • Webserver: Nginx

Steps to reproduce

run installer, go to webui, go to modoboa and press save after changing settings

I tried figuring this out, but basically a clean centos 7 kickstart and then I run the installer. I can go to the web interface and see everything.

But when I try to edit modoboa -> parameters and press save. I get a http 400.

"POST /core/parameters/ HTTP/1.1" 400 132 

Then when I do a browser reload, the setting is not saved and goes back to the installer defaults.

Possible reason

the WebUI is not showing “form_errors”.

{"prefix": "core", "form_errors": {"default_password": ["This password is too common.", "Password must contain at least 1 digit."]}}

And then some other form error

{"prefix": "modoboa_amavis", "form_errors": {"recipient_delimiter": ["This field is required."]}}

Because the UI doesnt show form_errors, I had no idea why it was giving a HTTP 400 and not saving my settings.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tonioocommented, Feb 14, 2018

A new version of the amavis plugin has been released and should fix this issue.

0reactions
laapsaapcommented, Feb 14, 2018

You dont need my config. Just for now change default_password to some random string with numbers in it and Amavis->recipient_delimiter use a + sign. Press save and you should get Parameters saved popup.

Yeah its a bit shitty, but you can put your browser into developer mode and read the response when you press save. The error messages are shown.jj

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is HTTP error 400 and how do you fix it? - IT PRO
A website may fail to comply with your request due to old or corrupt cookies. As a quick fix, consider clearing your browser...
Read more >
400 BAD request HTTP error code meaning? - Stack Overflow
A 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn't follow...
Read more >
Cannot save Settings in Controller (Settings/Maintenance)
Hi guys,. according to the new installation of the UniFi controller on a Raspberry Pi 3 and the import of an backup, I...
Read more >
"[400] An error occurred while sending an authentication ...
Process to workaround the issue:​​ To enable short name access to vCenter, add the desired shortname in webclient. properties file. Before ...
Read more >
Windows Admin Center common troubleshooting steps
This article describes how to diagnose and resolve issues in Windows Admin Center. If you're having an issue with a specific tool, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found