NoMethodError in after callback inside Grape::Middleware::Formatter
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with Grape::Middleware::Formatter and reproduce the NoMethodError using the status(200) response shown in the issue. Trace the failing after callback and establish the expected response behavior; done means the reported error is reproduced, its cause is identified, and the behavior is covered by an appropriate regression test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I am getting Grape::Middleware::Formatter : undefined method `collect' for #<Stream:0x00007f685ce13270>
My code works fine, I have tested each line by my hand but if I run the whole API this error appears.
My code is as follow
@stream = Stream.new(stream_params)
@stream.location_id = get_location
@stream.user_id = @streamer.id
@stream.university = @university
@stream.category = @category
@stream.save!
status(200){
'message': 'successfully created the stream request'
}
- Lingua principale
- Ruby
- Stelle
- 10k
- Fork
- 1.2k
- Merge medio
- 14h 9m
- PR unite (30g)
- 96
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ruby-grape/grape
-
feature request you can help
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
ruby-grape/grape#2487 · 2 commenti · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
ruby-grape/grape#2979 · 1 commento ·
-
chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
ruby-grape/grape#2562 · 4 commenti ·
-
feature request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ruby-grape/grape#2522 · 3 commenti ·
-
bug?
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
ruby-grape/grape#2473 · 6 commenti · 1 reazione ·
Tutte le issue di ruby-grape/grape
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TheOdinProject/curriculum#31417 · 2 commenti ·
-
Allow faraday-http-cache 3.x Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
glossarist/glossarist-ruby#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
palladius/rails8-app-on-gcp#145 ·