Internal server error on some urls #155
Labels
No labels
area: app c
area: app d
area: devops
area: discovery
area: docs
area: proposal
area: X-device Sync
Chainquery
consider soon
dependencies
Epic
Fix till next release
good first issue
hacktoberfest
help wanted
icebox
Invalid
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
Parked
priority: blocker
priority: high
priority: low
priority: medium
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lighthouse.js#155
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://lighthouse.lbry.com/autocomplete?s=@swiss%20experiments
reproduced it locally
error:
TypeError: Cannot read property 'metadata' of null
for
specifically
var title = pResult._source.value.stream.metadata.title
.So a
stream
is not undefined but it's null?@seanyesmunt Should I be checking for both null and undefined?
Is it pulling from the json data in CQ? Ew. The structure changed with updates....it's just
source.value.title
now, but it should just pull from the CQ table directly instead.This will happen for any updated claims...
Yes it is and yeah, agreed. Will be changing that. However, Chainquery is backwards compatible. So that should not be the problem. I made the changes in chainquery to not change the structure of that json column. It was a little extra work but it made sure the API ( SQL queries ) would not break. This is something else.
I am checking
undefined
but not null and it looks like the first check is checking for null.chainquery
94a8ea83e1/daemon/processing/metadata.go (L50-L85)
It's a channel, it won't even have a stream section.
This is what I'm seeing on CQ in value as json.
yeah, and I am checking
undefined
but itsnull
.https://www.ajaymatharu.com/javascript-difference-between-undefined-and-null/
Based on the above I think I need to check for both null and undefined. Changing this now to see if its resolved.
fixed with
3a061df1a4