Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post and like gives some errors #61

Closed
georgeowell opened this issue Jan 18, 2020 · 3 comments
Closed

Post and like gives some errors #61

georgeowell opened this issue Jan 18, 2020 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists
Milestone

Comments

@georgeowell
Copy link
Collaborator

Browser:

Firefox Browser 72.0.1
Chromium Version 79.0.3945.79

What's the problem you want to solved?

I am getting some possibly linked errors when carrying out different actions such as publish and like. Some of the actions are carried out but not always. Haven't worked out a logic to that yet. Could also be linked to my initial issue #60.

http://localhost:3000/publish/

ReferenceError: URL is not defined
    at app.use (/usr/local/lib/node_modules/@fraction/oasis/src/http.js:53:26)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

http://localhost:3000/like/foobar

ReferenceError: URL is not defined
    at router.param.param.param.param.get.get.get.get.get.get.get.get.get.get.get.get.get.get.get.get.get.get.get.post.post.post.post.post.post (/usr/local/lib/node_modules/@fraction/oasis/src/index.js:480:21)
    at dispatch (/usr/local/lib/node_modules/@fraction/oasis/node_modules/koa-router/node_modules/koa-compose/index.js:44:32)
    at next (/usr/local/lib/node_modules/@fraction/oasis/node_modules/koa-router/node_modules/koa-compose/index.js:45:18)
    at /usr/local/lib/node_modules/@fraction/oasis/node_modules/koa-body/index.js:148:14
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
@christianbundy christianbundy added the bug Something isn't working label Jan 19, 2020
@christianbundy
Copy link
Member

Any chance this is resolved also? 😬

@georgeowell
Copy link
Collaborator Author

georgeowell commented Jan 26, 2020

Despite #60 being solved by me upgrading to a new Node.js version (12.14.1) and running a node rebuild, I am still having issues with similar actions.

The error message for liking a post and posting something is different now:

Error: non-error thrown: {"message":"no async:tangle,branch","name":"Error","stack":"Error: no async:tangle,branch\n    at Object.localCall (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/muxrpc/local-api.js:29:13)\n    at Object.<anonymous> (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/muxrpc/local-api.js:37:22)\n    at Object.request (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/muxrpc/stream.js:48:17)\n    at PacketStream._onrequest (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/packet-stream/index.js:161:17)\n    at PacketStream.write (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/packet-stream/index.js:134:41)\n    at /tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/muxrpc/pull-weird.js:56:15\n    at /tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/pull-stream/sinks/drain.js:24:37\n    at /tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/pull-goodbye/node_modules/pull-stream/throughs/filter.js:17:11\n    at Object.cb (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/packet-stream-codec/index.js:111:11)\n    at drain (/tmp/.mount_PatchweJHINN/resources/app.asar/node_modules/pull-reader/index.js:39:14)"}
    at Object.onerror (/home/foo/git/oasis/node_modules/koa/lib/context.js:113:40)
    at onerror (/home/foo/git/oasis/node_modules/koa/lib/application.js:163:32)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)

I can't make head nor tails of this.

I also get the same error for: http://localhost:3000/comment/

@christianbundy
Copy link
Member

Sorry, this was reported as #21 but I haven't fixed it yet. It's happening because Patchwork doesn't have one of the plugins that we use, which is causing a problem. Let me see if I can whip up a fix real quick...

@christianbundy christianbundy added the duplicate This issue or pull request already exists label Jan 26, 2020
@cinnamon-bun cinnamon-bun added this to the Barebones SSB client milestone Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Development

No branches or pull requests

3 participants