Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan Bílek 15 posts 187 karma points
    Jul 03, 2016 @ 10:49
    Jan Bílek
    0

    Cannot login to Umbraco - Bad request

    Hi,

    I'm using umbraco v7.4.3 along with VisualStudio 2015 (Nuget install) and MS SQL Server 2014.

    After install I'm not able to login to Umbraco getting a following error in Javascript console.

     Failed to load resource: the server responded with a status of 400
     (Bad Request)
    
    http://localhost:50501/umbraco/backoffice/UmbracoApi/Authentication/PostLogin
    
    )]}',
    {"Message":"The requested resource does not support http method 'GET'."}
    

    I've also noticed following:

    • Logging works when running on SQL Server CE
    • After initial setup wizard I'm sucessfuly logged in and I'm able to use Umbraco until I log out
    • When I allowed a browser to save a password I was able to skip the login form and get in as well

    I'm using windows integrated authentication for the database. Are there any additional configurations I should check or change to deal with this issue?

    Thanks,

    John

  • Alex Skrypnyk 6150 posts 24110 karma points MVP 8x admin c-trib
    Jul 03, 2016 @ 11:14
    Alex Skrypnyk
    0

    Hi Jan,

    So are you sure that connection to the database is fine?

  • Jan Bílek 15 posts 187 karma points
    Jul 03, 2016 @ 12:15
    Jan Bílek
    0

    Yes, pretty sure. I've also tried to create a new project using SQL authentication instead of windows integrated. Ran into the same problem though.

  • Jan Bílek 15 posts 187 karma points
    Jul 03, 2016 @ 17:34
    Jan Bílek
    101

    Okay,

    I've changed userNoConsole field in umbracoUser table to false and it works like a charm.

    Do you know what does this field exactly do? And why it could have been set to true right from the beginning?

  • Josué González 17 posts 110 karma points
    May 22, 2017 @ 15:57
    Josué González
    0

    I have this same problem after upgrade to the new version 7.6.1...

    I've changed too the userNoConsole to false in the umbracoUser Table...

    But I Still have this error:

    Failed to load resource: the server responded with a status of 400 (Bad Request)
    
    XHR finished loading: POST "http://localhost:51165/umbraco/backoffice/UmbracoApi/Authentication/PostLogin".
    )]}',
    {"Message":"The requested resource does not support http method 'GET'."}
    
  • Jan Bílek 15 posts 187 karma points
    May 22, 2017 @ 17:09
    Jan Bílek
    0

    I've seen this error many times since then and it was almost always a connection string issue. Especially when you are setting up Umbraco or deploying it into production, make sure that this is right.

    If none of these are applicable, the user might be locked out - check the other columns in UmbracoUser table.

  • Josué González 17 posts 110 karma points
    May 22, 2017 @ 17:23
    Josué González
    1

    HI Jan Bilek...

    Thanks for your quick response...

    Now, I have solved.

    I had 3 problems ... I recommend reviewing the following

    1) Change the useLegacyEncoding value in the web.config file to true

    2) Change the EnablePropertyValueConverters value to false in the umbracoSettings.config file

    This is part of the additional configurations after upgrading an umbraco:

    Https://our.umbraco.org/contribute/releases/761

    3) Check again that the userNoConsole value of the umbracoUser table is set to false for your user credential.

    After this, in my case. I was able to log in. Thank you very much.

  • Liam Dilley 166 posts 393 karma points
    22 days ago
    Liam Dilley
    0

    If anyone runs through a WAF system be it Cloudflare or another service you need to whitelist /umbraco * as these cause this issue.

Please Sign in or register to post replies

Write your reply to:

Draft