Code Monkey home page Code Monkey logo

Comments (7)

andreespirela avatar andreespirela commented on June 9, 2024

Cannot reproduce in Microsoft Windows 10 Enterprise edition 10.0.17134 Build 17134. Will keep investigating

from mandarinets.

peanutbother avatar peanutbother commented on June 9, 2024

Cannot reproduce anymore either.
Seems like something fluctuated, as I can now run it without issues.
Will close for now, as it is not reproducible.

from mandarinets.

peanutbother avatar peanutbother commented on June 9, 2024

So I closed this too early since this bug seems to show once I restarted debugging from the same code, which gave me undefined again.

This clearly needs more investigation, reopening.

from mandarinets.

peanutbother avatar peanutbother commented on June 9, 2024

This bug was reproducible for me again and I think I found the issue why it wasn't reproducible in the first run.

In my repo there is a file called .env.sample which is the sample .env file for my project.
I use the MANDARINE_PROPERTY_FILE environment variable to load my custom properties.json file for mandarine.
This would normally get loaded from a different folde since I have a different folder structure.

Please try to rename said .env file so it gets loaded. After that, you will see my bug occur in code.
I will append this info to my repo.

from mandarinets.

andreespirela avatar andreespirela commented on June 9, 2024

I think this has to do with the session container configuration and something being ignored from the properties.json. Will investigate into it & try to have a fix for today.

from mandarinets.

andreespirela avatar andreespirela commented on June 9, 2024

can you try setting enableSessions inside mandarine.server to true.?

{
  "mandarine": {
    "server": {
      "port": 8080,
      "host": "localhost",
      "enableSessions": true
    },
    "resources": {
      "staticFolder": "./lib/resources/assets"
    },
    "templateEngine": {
      "path": "./lib/resources/templates"
    }
  }
}

& let me know what happens @peanutbother

from mandarinets.

peanutbother avatar peanutbother commented on June 9, 2024

this was indeed the missing piece of information - it all works now, so I'll close this again.
The lack of documentation about this should get tracked, as @andreespirela pointed out, we should track it in #273

from mandarinets.

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.