Code Monkey home page Code Monkey logo

Comments (4)

arctic-hen7 avatar arctic-hen7 commented on June 15, 2024

Have you tried requesting from localhost rather than 0.0.0.0? Also, if you're running in a Docker container that can cause these kinds of issues.

from perseus.

afidegnum avatar afidegnum commented on June 15, 2024

I tried 0.0.0.0 then 127.0.0.1 and this test is done on the bare machine not on docker. I had that error on docker which prompted me to run the test locally

from perseus.

afidegnum avatar afidegnum commented on June 15, 2024

A quick question. while implementing on Server integrations, how do I pass in web::Data including custom middleware from actix to perseus, I'm trying to port in a sample authentication feature as well but I'm not able to implement directly actix's HttpRequest and HttpResponse on perseus, I noticed perseus is heavilly based on http and hyper, is there any implementation doorway?

UPDATE:
this is my new implementation: https://github.com/afidegnum/custom_test_server/tree/actize

I'm not able to pass cookies and sessions from pub async fn dflt_server
to various states generations, can you please guide?

from perseus.

arctic-hen7 avatar arctic-hen7 commented on June 15, 2024

Sorry for the late reply! You should be able to access all the details of the request in the request state generation function, though anything you would put in web::Data should go in your global state instead under #[cfg(engine)]. If it can't be serialized, try putting it in a lazy_static! or similar instead.

from perseus.

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.