falcon Questions

8

I try to use falcon package in my project. Problem is I didn't find a way to get body data from the HTTP post request. I used code from example, but req.stream.read() doesn't return JSON as expect...
Tamtam asked 8/2, 2018 at 6:42

4

Solved

I'm using Falcon CORS to allow access to my web service only from several domains. But it does not work properly. Let me explain, if we take a look at my implementation: ALLOWED_ORIGINS = ['*'] cro...
Placatory asked 20/12, 2016 at 16:58

3

Solved

Receiving these error when using the OPTIONS verb in Angular2 http.get(url, options), even though the appropriate CORS headers are set in Falcon Rest API. XMLHttpRequest cannot load http://local...
Traditionalism asked 10/3, 2017 at 9:39

1

Solved

I'm moving my code from Flask to Falcon and a small annoyance is that I can't seem to find way to run my Falcon-based app from the __main__ method. In my Flask app I had this: if __name__ == '__ma...
Gardie asked 19/3, 2019 at 23:54

2

Solved

My routes are as follows: app.add_route('/v1/my_route', MyResource()) app.add_route('/v1/my_route/{app_id}', MyResource()) app.add_route('/v1/my_route2/any_route', AnyRouteResource()) app.add_rout...
Kaylor asked 17/8, 2018 at 7:46

4

Solved

I'm writing Falcon middleware for my application. When i get any errors i want to raise error, break process and return my custom response, that looks like: { "status": 503, "message": "No Toke...
Toname asked 12/12, 2016 at 14:28

1

Solved

I am trying to use Falcon web framework with async workers like gevents and asyncio. I have been looking around for tutorials, but I haven't been able to find any which combine implementation of ge...
Discoloration asked 9/5, 2016 at 14:59

1

Before asking the question i want to mention that i am aware of the fact that i can use django instead to make the app, but i need to use falcon and nothing else. i am just looking for an approach...
Warford asked 5/1, 2016 at 18:20

1

Solved

i've started making an API using Falcon on Ubuntu and I've been using gunicorn to test it but I also want to try developing it on Windows too. As we know gunicorn doesn't work on Windows yet so I ...
Whatever asked 1/3, 2016 at 16:23
1

© 2022 - 2024 — McMap. All rights reserved.