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

Stringification of a Buf is not done with 'Str' #71

Open
davehayes opened this issue Aug 2, 2020 · 2 comments
Open

Stringification of a Buf is not done with 'Str' #71

davehayes opened this issue Aug 2, 2020 · 2 comments

Comments

@davehayes
Copy link

I found this exception in my logs:

Died because of the exception:
    Stringification of a Buf is not done with 'Str'.
    The 'decode' method should be used to convert Buf to a Str.
      in sub from-json at /rw/home/dave/.rakubrew/versions/moar-2020.05.1/install/share/perl6/site/sources/CF9890C71AE8A56077B5CB316932D72C4F622655 (JSON::Fast) line 669
      in method get at /rw/home/dave/.rakubrew/versions/moar-2020.05.1/install/share/perl6/site/sources/9A32FD61B375BC9C16658D298F3EDFC0BF07B976 (Matrix::Client::Requester) line 29
      in method sync at /rw/home/dave/.rakubrew/versions/moar-2020.05.1/install/share/perl6/site/sources/21F88B5335208B63586F8168E3B6793E42ABEEE4 (Matrix::Client) line 183
      in method sync at /rw/home/dave/.rakubrew/versions/moar-2020.05.1/install/share/perl6/site/sources/21F88B5335208B63586F8168E3B6793E42ABEEE4 (Matrix::Client) line 178
      in block  at /rw/home/dave/.rakubrew/versions/moar-2020.05.1/install/share/perl6/site/sources/1DCA72658C23E63D648E8A1C9327A064E13175C3 (Matrix::Bot) line 97

I looked at the line it's complaining about but as I'm pretty new to Raku I've no idea what that does. Is this my issue or yours? :)

@timo
Copy link
Owner

timo commented Aug 8, 2020

depends on what we want it to do; when there's a buf, do you want it to show up as an array of integers? that's the simplest solution i can come up with. i'll have to look at Matrix::Client::Requester and Matrix::Bot to see why exactly it would have a buf in something that gets json-ified

@davehayes
Copy link
Author

davehayes commented Aug 9, 2020

I am likely too new to Raku to advise here. My only comment would be that an untimely demise isn't a "least surprise". :)

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