Grape::Middleware::Formatter : undefined local variable or method 'attributes'

181 views
Skip to first unread message

Paulo Langer

unread,
Mar 7, 2021, 10:12:47 AM3/7/21
to Grape Framework Discussion
Hey, guys!

I'm struggling with this issue for a while so I decided to come here and ask your help.
Actually, locally grape and grape-entity works fine but, when I deploy the code to Heroku, I got this:

caught error of type NameError in after callback inside Grape::Middleware::Formatter : undefined local variable or method `attributes' for "x...@test.com":String
2021-03-06T19:29:15.069136+00:00 app[web.1]: Did you mean?  attribute_names
2021-03-06T19:29:15.069895+00:00 app[web.1]: #<NameError: undefined local variable or method `attributes' for "x...@test.com":String
2021-03-06T19:29:15.069896+00:00 app[web.1]: Did you mean?  attribute_names>

I'm using:
Ruby 2.7.2
Rails 5.2.4.5
grape 1.5.2
grape-entity 0.8.2

Do you guys have any ideia?

Thanks,
Paulo

Daniel D.

unread,
Mar 7, 2021, 4:49:28 PM3/7/21
to Grape Framework Discussion
Do you have the full stack for this error?

--
You received this message because you are subscribed to the Google Groups "Grape Framework Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-grape+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-grape/07f681cb-587e-4a6d-8e45-73ac3b410ef4n%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages