-
Notifications
You must be signed in to change notification settings - Fork 159
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
Nitrogen over Yaws set cookie throws exception #134
Comments
Ahh yes.
This was a bug, but it was pretty recently fixed.
It's a bug in simple_bridge, that was introduced in nitrogen/simple_bridge@63cea4d and fixed in nitrogen/simple_bridge@6924781
If you pull the latest version of simple_bridge, that should solve your problems.
Thanks!
Jesse Gumm
http://jessegumm.com
…On Mar 26 2023, at 10:32 am, Sserwanga J. Vianney ***@***.***> wrote:
I've installed Nitrogen over Yaws (Nitrogen 2.4.0, Yaws 2.0.8, ERTS 13.2 - R25).
When I try http://0.0.0.0:8000/ I get Internal server error. When I check in the console I get this error.
{error,first_request,
{url,"b_server/"},
{throw,
{badarg,same_site},
[{yaws_api,cookie_option,2,[{file,"src/yaws_api.erl"},{line,725}]},
{yaws_api,'-set_cookie/3-fun-0-',2,
[{file,"src/yaws_api.erl"},{line,734}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{yaws_api,set_cookie,3,[{file,"src/yaws_api.erl"},{line,733}]},
{yaws_simple_bridge,'-assemble_headers/1-lc$^0/1-1-',1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,assemble_headers,1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,build_response,2,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,161}]},
{wf_core,run,0,[{file,"src/wf_core.erl"},{line,23}]}]}}
—
Reply to this email directly, view it on GitHub (#134), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AABNRHEOKBFLZCGANAAV3R3W6BOSTANCNFSM6AAAAAAWIH6TGA).
You are receiving this because you are subscribed to this thread.
|
I'm having the same issue but pulling the latest By default, the I'm also running Nitrogen 2.4.0 over Yaws. One on OTP 24 [erts-12.3.2.13] and another on OTP 25 [erts-13.2.2]. |
Hmm, not sure how that should be the case. If your version of What version/commit of |
It turns out support for The app was using the latest commit on the master branch of nitrogen_core@d00926a, This was the error:
|
Oh, good to know!
Thanks!
…On Sat, Aug 19, 2023, 2:21 AM Ayiko Fred ***@***.***> wrote:
It turns out support for SameSite cookie was added in Yaws 2.1.0
<https://github.com/erlyaws/yaws/releases/tag/yaws-2.1.0>, not the
default Yaws 2.0.8. I just made the app to pull Yaws-2.1.0 and was back in
business.
The app was using the latest commit on the master branch of
***@***.***
<nitrogen/nitrogen_core@d00926a>
,
Yaws 2.0.8 <https://github.com/erlyaws/yaws/releases/tag/yaws-2.0.8>
(which is the dafault one pulled), and also the latest commit on the master
branch of ***@***.***
<nitrogen/simple_bridge@7137f6a>
.
This was the error:
=INFO REPORT==== 19-Aug-2023::09:41:43.100499 ===
{error,first_request,
{url,"localhost:8000/"},
{throw,
{badarg,same_site},
[{yaws_api,cookie_option,2,[{file,"src/yaws_api.erl"},{line,725}]},
{yaws_api,'-set_cookie/3-fun-0-',2,
[{file,"src/yaws_api.erl"},{line,734}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{yaws_api,set_cookie,3,[{file,"src/yaws_api.erl"},{line,733}]},
{yaws_simple_bridge,'-assemble_headers/1-lc$^0/1-1-',1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,assemble_headers,1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,build_response,2,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,161}]},
{wf_core,run,0,[{file,"src/wf_core.erl"},{line,23}]}]}}
=INFO REPORT==== 19-Aug-2023::09:41:43.101523 ===
Crash Handler Crashed:
{throw,{badarg,same_site},
[{yaws_api,cookie_option,2,[{file,"src/yaws_api.erl"},{line,725}]},
{yaws_api,'-set_cookie/3-fun-0-',2,
[{file,"src/yaws_api.erl"},{line,734}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{yaws_api,set_cookie,3,[{file,"src/yaws_api.erl"},{line,733}]},
{yaws_simple_bridge,'-assemble_headers/1-lc$^0/1-1-',1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,assemble_headers,1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,build_response,2,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,161}]},
{wf_core,run_crash,4,[{file,"src/wf_core.erl"},{line,46}]}]}
Original Crash:
{throw,{badarg,same_site},
[{yaws_api,cookie_option,2,[{file,"src/yaws_api.erl"},{line,725}]},
{yaws_api,'-set_cookie/3-fun-0-',2,
[{file,"src/yaws_api.erl"},{line,734}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1350}]},
{yaws_api,set_cookie,3,[{file,"src/yaws_api.erl"},{line,733}]},
{yaws_simple_bridge,'-assemble_headers/1-lc$^0/1-1-',1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,assemble_headers,1,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,215}]},
{yaws_simple_bridge,build_response,2,
[{file,"src/yaws_bridge_modules/yaws_simple_bridge.erl"},
{line,161}]},
{wf_core,run,0,[{file,"src/wf_core.erl"},{line,23}]}]}
—
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABNRHD6ONNIXZBSS3VY3ODXWBSRDANCNFSM6AAAAAAWIH6TGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I've installed Nitrogen over Yaws (Nitrogen 2.4.0, Yaws 2.0.8, ERTS 13.2 - R25).
When I try
http://0.0.0.0:8000/
I get Internal server error. When I check in the console I get this error.The text was updated successfully, but these errors were encountered: