Code Monkey home page Code Monkey logo

Comments (2)

dagostinelli avatar dagostinelli commented on July 22, 2024

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.

allisson avatar allisson commented on July 22, 2024

@dagostinelli check if work with https://pypi.org/project/simple-rest-client/0.5.4/ 😃

from python-simple-rest-client.

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.