Giter VIP home page Giter VIP logo

Comments (6)

cocoonkid avatar cocoonkid commented on June 15, 2024

I tried deleting the db and just reinitializing everything. now I get

secretsmysitecom-hemmelig-1 | {"level":50,"time":1705595062467,"pid":19,"hostname":"e2d48b5d4986","reqId":"req-4","req":{"method":"GET","url":"/","hostname":"secrets.mysite.com","remoteAddress":"10.20.30.4","remotePort":36472},"res":{"statusCode":500},"err":{"type":"TypeError","message":"Cannot read properties of null (reading 'role')","stack":"TypeError: Cannot read properties of null (reading 'role')\n at Object.readOnlyHandler (file:///home/node/hemmelig/src/server/prehandlers/read-only.js:28:49)"},"msg":"Cannot read properties of null (reading 'role')"}

might be related to #246

from hemmelig.app.

bjarneo avatar bjarneo commented on June 15, 2024

Hi, @cocoonkid , can you delete your cookies, then it should work. This issue is when you are already signed in to the domain, then the API tries to read from the cookies, and if the user do not exist, this error will be thrown.

I have to create a fix for that.

from hemmelig.app.

cocoonkid avatar cocoonkid commented on June 15, 2024

@bjarneo I tried all this.
But it still does not work.
I also removed all mounts and made sure to start from scratch but still no dice.

from hemmelig.app.

bjarneo avatar bjarneo commented on June 15, 2024

I am not sure how you can end up in this situation at all. Really. Did you try with the latest release?

What I am trying to say is that most likely it is not the application causing issues.

Did you try to backup the database file, then remove it from the db folder and start from scratch?

from hemmelig.app.

filcuk avatar filcuk commented on June 15, 2024

I've had the same issue.
In case you have SECRET_HOST env var prefixed with the protocol, remove it. I.e.

SECRET_HOST=your.domain.com

from hemmelig.app.

cocoonkid avatar cocoonkid commented on June 15, 2024

Thanks, but this correct in my case. I think my reverse proxy is doing something wrong. I will review this soon.

from hemmelig.app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.