SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

When #Followed Tags is empty /tag_followings crash error 500

Open movilla opened this issue 14 years ago • 9 comments

When Commented Posts is empty, user clik here https://XXXXXXXXX/comment_stream works fine.

When Like Stream is empty, user click hero https://XXXXXXXX//like_stream works fine

But when #Followed Tags is empty https://XXXXXXXXXX/tag_followings crash error 500

Thanks.

movilla avatar Dec 08 '11 01:12 movilla

https://joindiaspora.com/tags_following does not exist. It must return a 404Not found error. How did you get error 500? I mean did you really get Error 500? Or the server of thee pod could be down for a moment / suffered a jitter.

mindaslab avatar Dec 08 '11 18:12 mindaslab

https://diasp.org/tag_followings error 500 and https://jauspora.com/tag_followings error 500

404 or 500 may depend on the configuration of nginx, I do not know ;]

movilla avatar Dec 08 '11 18:12 movilla

I can confirm this issue. If no #tags have been entered onto the followed list, clicking on https://diasp.eu.com/tag_followings takes you to 500: Internal server error.

domwoolf avatar Dec 09 '11 14:12 domwoolf

It is probably some kind of null pointer exception(nil) because there is empty list. So error 500 is very usual in this case.

memarko avatar Dec 12 '11 21:12 memarko

In quick inspection I suspect there is a problem in function 'tags'(returns nil) here: https://github.com/diaspora/diaspora/blob/master/lib/stream/followed_tag.rb

I do not have environment set so I cannot test.

memarko avatar Dec 12 '11 21:12 memarko

I solved the problem. Now I am waiting acceptance of my pull request by someone of "developer"s. https://github.com/diaspora/diaspora/pull/2524

memarko avatar Dec 15 '11 16:12 memarko

Thanks ;]

movilla avatar Dec 15 '11 19:12 movilla

it wont be solved because they don't want to be solved.

memarko avatar Dec 20 '11 18:12 memarko

fixed by #2524

jhass avatar Jan 02 '12 01:01 jhass