Channel without claims shows "fetching content...", console error #636

Closed
opened 2017-09-28 16:32:38 +02:00 by tzarebczan · 8 comments
tzarebczan commented 2017-09-28 16:32:38 +02:00 (Migrated from github.com)

The Issue

Going to a channel without any claims (lbry://@blankchanneltest) makes it seem like the app is trying to pull something back but can't. The console produces an error:

Uncaught (in promise) TypeError: claims.forEach is not a function
    at reducers.(anonymous function) (webpack:///./js/reducers/claims.js?:149:12)
    at reducer (webpack:///./js/reducers/claims.js?:224:23)
    at combination (webpack:///./~/redux/es/combineReducers.js?:124:29)
    at batchingReducer (webpack:///./js/store.js?:108:16)
    at eval (webpack:///./~/redux-persist/es/autoRehydrate.js?:33:16)
    at dispatch (webpack:///./~/redux/es/createStore.js?:170:22)
    at eval (webpack:///./~/redux-logger/dist/redux-logger.js?:1:7760)
    at eval (webpack:///./js/store.js?:96:16)
    at eval (webpack:///./~/redux-thunk/lib/index.js?:14:16)

Steps to reproduce

  1. Open lbry://@blankchanneltest in LBRY
  2. App shows "fetching content..."
  3. Console will show error

Expected behaviour

App should say that no content exists yet

Actual behaviour

App looks like its fetching, but console errors

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue Going to a channel without any claims (lbry://@blankchanneltest) makes it seem like the app is trying to pull something back but can't. The console produces an error: ``` Uncaught (in promise) TypeError: claims.forEach is not a function at reducers.(anonymous function) (webpack:///./js/reducers/claims.js?:149:12) at reducer (webpack:///./js/reducers/claims.js?:224:23) at combination (webpack:///./~/redux/es/combineReducers.js?:124:29) at batchingReducer (webpack:///./js/store.js?:108:16) at eval (webpack:///./~/redux-persist/es/autoRehydrate.js?:33:16) at dispatch (webpack:///./~/redux/es/createStore.js?:170:22) at eval (webpack:///./~/redux-logger/dist/redux-logger.js?:1:7760) at eval (webpack:///./js/store.js?:96:16) at eval (webpack:///./~/redux-thunk/lib/index.js?:14:16) ``` ### Steps to reproduce 1. Open lbry://@blankchanneltest in LBRY 2. App shows "fetching content..." 3. Console will show error ### Expected behaviour App should say that no content exists yet ### Actual behaviour App looks like its fetching, but console errors ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: - LBRY App version: - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
btzr-io commented 2017-09-30 01:04:22 +02:00 (Migrated from github.com)

@tzarebczan is this fixed on -> 0.16.1rc1 ?

@tzarebczan is this fixed on -> `0.16.1rc1` ?
btzr-io commented 2017-09-30 01:04:48 +02:00 (Migrated from github.com)

if not I'll send a PR ^

if not I'll send a PR ^
kauffj commented 2017-09-30 14:51:29 +02:00 (Migrated from github.com)

It is not fixed.

Also, FYI, 0.16.1rc1 is a "draft", which means it is not public. You can only see it since you're a collaborator on this repo.

It is not fixed. Also, FYI, 0.16.1rc1 is a "draft", which means it is not public. You can only see it since you're a collaborator on this repo.
btzr-io commented 2017-09-30 16:59:26 +02:00 (Migrated from github.com)

so #638 is not working ? 😕

so #638 is not working ? :confused:
tzarebczan commented 2017-09-30 17:21:54 +02:00 (Migrated from github.com)

@btzr-io I just tried on rc1, had same result as reported on this issue.

@btzr-io I just tried on rc1, had same result as reported on this issue.
btzr-io commented 2017-09-30 17:24:28 +02:00 (Migrated from github.com)

@kauffj @tzarebczan yeah I know, this is fixed in lbry-app/fix-empty-channels #638 ^
that's why I sent that PR 😛

@kauffj @tzarebczan yeah I know, this is fixed in [lbry-app/fix-empty-channels](https://github.com/lbryio/lbry-app/tree/fix-empty-channels) #638 ^ that's why I sent that `PR` :stuck_out_tongue:
btzr-io commented 2017-09-30 17:35:13 +02:00 (Migrated from github.com)
<img width=400 src="https://user-images.githubusercontent.com/14793624/31047157-95529248-a5c2-11e7-9e98-71a6ac5b2a04.gif" />
kauffj commented 2017-10-02 18:32:13 +02:00 (Migrated from github.com)

Oops! My previous message was quite unclear. I meant it was not fixed in the RC.

AFAIK, your fix works. @tzarebczan you can test this in master if you like, or just wait for 0.17 rc.

Oops! My previous message was quite unclear. I meant it was not fixed in the RC. AFAIK, your fix works. @tzarebczan you can test this in master if you like, or just wait for 0.17 rc.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#636
No description provided.