Comments (2)
This isn't working for me. I'm getting double-slashes on all my API URLs now. My resource URLs all start with a slash so that I can use absolute paths. Now that simple-rest-client is appending a slash to the root URL, I get double slashes. The result is a 404 every time.
class MyResource(Resource):
actions = {
'make_apple': {'method': 'GET', 'url': '/orchard/make_apple'},
}
simple_rest_client.exceptions.NotFoundError: ("operation=not_found_error, response=Response(url='http://127.0.0.1:5000//orchard/make_apple', method='GET', body={'error': 404, 'text': '404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.'}
The work around is to remove the leading slash on all the resources (pain).
(A little while ago, I upgraded from PyPI and received this change in there. )
from python-simple-rest-client.
@dagostinelli check if work with https://pypi.org/project/simple-rest-client/0.5.4/ 😃
from python-simple-rest-client.
Related Issues (20)
- Extending resource default actions HOT 1
- File upload example
- Authentication request HOT 2
- Looks like json encoder uses huge amount of memory
- New httpx v0.8.0 breaks library
- Authentication HOT 1
- Dash in resource name: Mangling of resource names in add_resource() breaks compatibility HOT 2
- Feature request: Support docstring
- New httpx 0.12.1 breaks simple rest client
- feature request : Support for OAuth based authentication for API client
- Incorrect exception caught on timeout
- json_encode_body cannot be overridden if True in API HOT 2
- Handle connection refused exception
- Proxy Error 503
- Posibility to disable timeout?
- Question about concurrent requests limit
- add custom user agent feature
- suggestion regarding async HOT 3
- Incompatible with httpx>=0.19.0
- How to code for composite primary key?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-simple-rest-client.