Skip to content

Update carpenter#16

Open
okkdev wants to merge 1 commit into
grottohub:mainfrom
okkdev:update
Open

Update carpenter#16
okkdev wants to merge 1 commit into
grottohub:mainfrom
okkdev:update

Conversation

@okkdev
Copy link
Copy Markdown

@okkdev okkdev commented Jul 2, 2024

I updated carpenter and fixed the breaking changes it introduced in the cache.

But I'm running into some stratus(?) errors.

Request(Get, [], "", Https, "gateway.discord.gg", None, "/", Some("v=10&encoding=json"))
DEBG Calling user initializer
DEBG Attempting handshake to https://gateway.discord.gg/?v=10&encoding=json
Request(Get, [], "", Https, "gateway.discord.gg", None, "/", Some("v=10&encoding=json"))
DEBG Calling user initializer
DEBG Attempting handshake to https://gateway.discord.gg/?v=10&encoding=json
EROR #([69, 114, 114, 111, 114, 32, 105, 110, 32, 112, 114, 111, 99, 101, 115, 115, 32, 126, 112, 32, 119, 105, 116, 104, 32, 101, 120, 105, 116, 32, 118, 97, 108, 117, 101, 58, 126, 110, 126, 112, 126, 110], [//erl(<0.121.0>), #(CaseClause(CustomizeHostnameCheck([MatchFun(//fn(a, b) { ... })])), [atom.create_from_string("stratus@internal@socket")(atom.create_from_string("-convert_options/1-fun-0-"), 1, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 115, 116, 114, 97, 116, 117, 115, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 115, 116, 114, 97, 116, 117, 115, 64, 105, 110, 116, 101, 114, 110, 97, 108, 64, 115, 111, 99, 107, 101, 116, 46, 101, 114, 108]), Line(38)]), atom.create_from_string("gleam@list")(DoMap, 3, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 103, 108, 101, 97, 109, 95, 115, 116, 100, 108, 105, 98, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 103, 108, 101, 97, 109, 64, 108, 105, 115, 116, 46, 101, 114, 108]), Line(139)]), Stratus(PerformHandshake, 3, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 115, 116, 114, 97, 116, 117, 115, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 115, 116, 114, 97, 116, 117, 115, 46, 101, 114, 108]), Line(480)]), Stratus(atom.create_from_string("-initialize/1-fun-12-"), 4, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 115, 116, 114, 97, 116, 117, 115, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 115, 116, 114, 97, 116, 117, 115, 46, 101, 114, 108]), Line(704)]), atom.create_from_string("gleam@otp@actor")(Loop, 1, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 103, 108, 101, 97, 109, 95, 111, 116, 112, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 103, 108, 101, 97, 109, 64, 111, 116, 112, 64, 97, 99, 116, 111, 114, 46, 101, 114, 108]), Line(150)])])])
EROR #([69, 114, 114, 111, 114, 32, 105, 110, 32, 112, 114, 111, 99, 101, 115, 115, 32, 126, 112, 32, 119, 105, 116, 104, 32, 101, 120, 105, 116, 32, 118, 97, 108, 117, 101, 58, 126, 110, 126, 112, 126, 110], [//erl(<0.123.0>), #(CaseClause(CustomizeHostnameCheck([MatchFun(//fn(a, b) { ... })])), [atom.create_from_string("stratus@internal@socket")(atom.create_from_string("-convert_options/1-fun-0-"), 1, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 115, 116, 114, 97, 116, 117, 115, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 115, 116, 114, 97, 116, 117, 115, 64, 105, 110, 116, 101, 114, 110, 97, 108, 64, 115, 111, 99, 107, 101, 116, 46, 101, 114, 108]), Line(38)]), atom.create_from_string("gleam@list")(DoMap, 3, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 103, 108, 101, 97, 109, 95, 115, 116, 100, 108, 105, 98, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 103, 108, 101, 97, 109, 64, 108, 105, 115, 116, 46, 101, 114, 108]), Line(139)]), Stratus(PerformHandshake, 3, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 115, 116, 114, 97, 116, 117, 115, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 115, 116, 114, 97, 116, 117, 115, 46, 101, 114, 108]), Line(480)]), Stratus(atom.create_from_string("-initialize/1-fun-12-"), 4, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 115, 116, 114, 97, 116, 117, 115, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 115, 116, 114, 97, 116, 117, 115, 46, 101, 114, 108]), Line(704)]), atom.create_from_string("gleam@otp@actor")(Loop, 1, [File([47, 85, 115, 101, 114, 115, 47, 106, 115, 47, 68, 111, 99, 117, 109, 101, 110, 116, 115, 47, 103, 105, 116, 47, 112, 101, 114, 115, 111, 110, 97, 108, 47, 103, 108, 97, 101, 110, 122, 47, 98, 117, 105, 108, 100, 47, 100, 101, 118, 47, 101, 114, 108, 97, 110, 103, 47, 103, 108, 101, 97, 109, 95, 111, 116, 112, 47, 95, 103, 108, 101, 97, 109, 95, 97, 114, 116, 101, 102, 97, 99, 116, 115, 47, 103, 108, 101, 97, 109, 64, 111, 116, 112, 64, 97, 99, 116, 111, 114, 46, 101, 114, 108]), Line(150)])])])

I tried updating stratus, but that didn't change anything. It might be user error on my part.
Any ideas on how to debug this?

@grottohub
Copy link
Copy Markdown
Owner

hey, thanks for working on that! as for the error messages, that is an annoying part of how the underlying erlang vm logs things - if you run those numbers through a decimal to text converter, you should get the actual stack trace. i can also help debug further once i'm back from traveling in a few days

@okkdev
Copy link
Copy Markdown
Author

okkdev commented Jul 3, 2024

Thanks! From what I gather it's happening here. Which is outside of glyph.
https://github.com/rawhat/stratus/blob/main/src/stratus/internal/socket.gleam#L142

Could you confirm this issue, just to make sure that it's not some problem in my bot? :)

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

Successfully merging this pull request may close these issues.

2 participants