Copied to clipboard

Flag this post as spam?

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


  • Carl Bussema 38 posts 140 karma points
    Jan 29, 2018 @ 15:31
    Carl Bussema
    0

    Error 417 saving CSS on version 7.7.2

    I have a site running U7.7.2, and when I log in with administrator privileges, or any of the editors log in, nobody can save any CSS files.

    No error is displayed to the user, but the dev console shows Error 417 Expectation Failed https://(site)/umbraco/RestServices/SaveFile/SaveStylesheet 417 (Expectation Failed)

    The trace log that I can get from the developer pane doesn't have any record or any errors related to this.

    I tested adding a comment to a JavaScript file with the backoffice editor, and that saves correctly.

    I have been out of the Umbraco world for a while (I'm only the backup support person, and nobody even TOLD me I was the backup until today). I see that there was a problem in 7.6.5 with error 417 but it was corrected in 7.6.6, so I'm assuming (perhaps incorrectly) that is also fixed in 7.7.2. It also seems like that was manifesting differently.

    I don't have the ability to deploy changes currently, but I'm working on getting that access. For now I'm limited to what I can do through the backoffice. Any ideas?

  • Steve Morgan 1184 posts 3810 karma points c-trib
    Jan 30, 2018 @ 08:52
    Steve Morgan
    1

    Hi Carl,

    Two things to test / check.

    1) Permissions on the css folder on the webserver.

    2) Length of the CSS file - I've seen some websites with huge CSS files that the post is rejected.

    Probably worth creating a test.css file on the server that's empty and and try and edit it.

  • Carl Bussema 38 posts 140 karma points
    Jan 30, 2018 @ 16:16
    Carl Bussema
    0

    It's hosted in Azure; we don't have any way to directly change file system permissions.

    I was able to use the back office to create a new, empty CSS file, but attempting to save a single-line /* hello world */ failed with the same error 417.

  • Ben 103 posts 369 karma points
    Nov 12, 2019 @ 19:26
    Ben
    0

    I upgraded from 7.6.2 to 7.15.3 and am seeing the same problem when I try to save a CSS file. I can modify the CSS file outside of the backoffice, so this is more annoying than critical for me. Would be great to be able to modify the CSS directly in the backoffice though.

    Anybody have thoughts on what to look at for this?

  • Ben 103 posts 369 karma points
    Nov 12, 2019 @ 19:39
    Ben
    0

    In case it's helpful, here is a screenshot of the Javascript error message: enter image description here

  • Ben 103 posts 369 karma points
    Nov 12, 2019 @ 19:48
    Ben
    0

    I have tested permissions by temporarily allowing Everyone full access to the CSS folder and still got the error message. So I am assuming that file permissions isn't the problem.

    I have tried creating a new CSS file like Carl did and got the same error message, so I am also assuming it isn't a file size issue.

    Looks like it is failing to load the resource /umbraco/RestServices/SaveFile/SaveStylesheet when you click into a css file to edit.

  • Gareth Stewart 14 posts 86 karma points
    Jan 07, 2020 @ 17:00
    Gareth Stewart
    0

    Just to add to this list I have the same issue going from 7.5.14 to 7.15.3.

    /umbraco/RestServices/SaveFile/SaveStylesheet 417 (Expectation Failed)

  • Gareth Stewart 14 posts 86 karma points
    Jan 08, 2020 @ 17:00
    Gareth Stewart
    0

    ...in case this helps anyone:-

    my /umbraco/RestServices/SaveFile/SaveStylesheet 417 (Expectation Failed) error was fixed by changing the value in the Config\ClientDependency.config file.

    Line 13

    to the default one in the base 7.15.3 files

  • Giampiero D'Agostino 14 posts 106 karma points
    1 week ago
    Giampiero D'Agostino
    0

    I tried the above solution and did not work for me :( Did anyone find another way? Cheers, Giampiero

Please Sign in or register to post replies

Write your reply to:

Draft