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

Update docs #6

Closed
aondio opened this issue Dec 3, 2015 · 4 comments
Closed

Update docs #6

aondio opened this issue Dec 3, 2015 · 4 comments

Comments

@aondio
Copy link
Owner

aondio commented Dec 3, 2015

Misleading documentation, buffer_req_something returns a boolean now.

@blindpet
Copy link

@aondio I mistyped the vcl you helped me make on IRC. This is no longer working:

if ((req.method == "POST" || req.method == "PUT") && !( req.http.cookie ~ "wordpress_logged_in" ) && !(req.url ~ "wp-login\.php")) {
set req.http.x-method = req.method;
std.cache_req_body(110B);
set req.http.x-len = bodyaccess.len_req_body();
return(hash);
}

I get this error

Expected an action, 'if', '{' or '}'
('input' Line 96 Pos 1)
std.cache_req_body(110B);
##################-------

I hope your memory is better than mine

@aondio
Copy link
Owner Author

aondio commented Dec 16, 2015

Hi,
do you have "import std; " at the beginning of your VCL?

@blindpet
Copy link

Ah yes that was it! I am going to start a new issue for this new problem. I can't find you on irc atm.

-   FetchError     Request body too big to cache
-   Debug          "VRT_CacheReqBody(110): -1"
-   VCL_Error      Unbuffered req.body
-   ReqHeader      x-len: -1

Increasing std.cache_req_body(110KB); seems to have fixed that error

@aondio
Copy link
Owner Author

aondio commented Dec 16, 2015

Hi, it means you req body is bigger than the value you used in std.cache_req_body(BYTES size), try to bump up the size param.

@aondio aondio closed this as completed Feb 23, 2016
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