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

[BUG] Test forum : Default users can't see posts. #574

Closed
luluwebmaster opened this issue Jun 21, 2019 · 4 comments
Closed

[BUG] Test forum : Default users can't see posts. #574

luluwebmaster opened this issue Jun 21, 2019 · 4 comments

Comments

@luluwebmaster
Copy link

Hello,

When a basic user try to see a post, this error has returned :

image

But when I try to see the post without account or with my admin account, I don't have this error.

Full error from server console :

190621/184118.624, [response] http://localhost:8080: post /api/threads/U2cRKzLrTyCHKcVaCIgeAw/viewed {} 200 (70ms)
190621/184118.690, [error] message: method is not a function, stack: TypeError: method is not a function
    at Object.isMod (/var/nodejs/cryptos-currencies.com/epochtalk/server/plugins/authorization/index.js:43:12)
    at Object.build (/var/nodejs/cryptos-currencies.com/epochtalk/server/plugins/authorization/index.js:138:34)
    at /var/nodejs/cryptos-currencies.com/epochtalk/modules/ept-posts/authorization/byThread.js:38:42
    at bound (domain.js:425:14)
    at runBound (domain.js:438:12)
    at processImmediate (internal/timers.js:443:21)
    at process.topLevelDomainCallback (domain.js:136:23)
From previous event:
    at postsByThread (/var/nodejs/cryptos-currencies.com/epochtalk/modules/ept-posts/authorization/byThread.js:33:4)
    at normalized (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/methods.js:79:33)
    at result.method (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:246:16)
    at /var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:301:20
    at Items.parallel (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:44:13)
    at Object.exports.parallel (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:70:13)
    at each (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:42:15)
    at iterate (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:36:13)
    at Object.exports.serial (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:39:9)
    at Object.internals.prerequisites (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:61:11)
    at request._protect.run (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:29:23)
    at module.exports.internals.Protect.internals.Protect.run (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/protect.js:60:12)
    at exports.execute (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/handler.js:26:22)
    at each (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/request.js:401:16)
    at iterate (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:36:13)
    at done (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/items/lib/index.js:28:25)
    at postValidate (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/hapi/lib/validation.js:70:20)
    at internals.Object._validateWithOptions (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/joi/lib/types/any/index.js:767:20)
    at module.exports.internals.Any.root.validate (/var/nodejs/cryptos-currencies.com/epochtalk/node_modules/joi/lib/index.js:147:23)
190621/184118.690, [response] http://localhost:8080: get /api/posts {"limit":25,"thread_id":"U2cRKzLrTyCHKcVaCIgeAw"} 500 (20ms)

Original bug post : https://bitcointalk.org/index.php?topic=5115500.msg51488234#msg51488234

@akinsey
Copy link
Member

akinsey commented Jun 25, 2019

We have been working on a huge restructuring of epochtalk's code and this is one of the issues that has been fixed, I will be getting back to you soon with instructions on how to update your installation.

Thanks for your patience 🙏

@akinsey
Copy link
Member

akinsey commented Jun 28, 2019

Please try the latest code and let me know if you're still having this issues 🙏

@luluwebmaster
Copy link
Author

luluwebmaster commented Jul 3, 2019

Hello,

Yes sorry for the response time, what I need to update ? Just Epochtalk ( With Git command ? ) ?

Edit : Oh, sorry I have see your response in this issue : #572

Edit² : It's now good, thank you !

Thank you !

@akinsey
Copy link
Member

akinsey commented Jul 9, 2019

Thank you!

@akinsey akinsey closed this as completed Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants