Code Monkey home page Code Monkey logo

sepomex's Issues

CORS problem

Hi!
When I make the request with ajax it does not return a response. in the console it shows the error which is a CORS problem.
The code I use for the request is:

var url = "http://sepomex.icalialabs.com/api/v1/zip_codes?zip_code=" + CP;
    $.ajax({
        url : url,
        type: "GET",
        dataType : "JSON",
        async: true,
        cache: false
    })
        .done(function(data,status) {
            console.log(data)
        })
        .fail(function(xhr, status) {
            console.error(xhr);
        });

And the error it returns is:
Access to XMLHttpRequest at 'http://sepomex.icalialabs.com/api/v1/zip_codes?city=guadalupe&state=nuevo%20leon' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

This problem appeared since yesterday (07/28/2020) because before it worked normally.
Sorry for my English

Step 8 error

addgroup: The group `root' already exists.
useradd: group '1000' does not exist
ERROR: Service 'web' failed to build : The command '/bin/sh -c addgroup --gid ${DEVELOPER_GID} ${DEVELOPER_USERNAME} ; useradd -r -m -u ${DEVELOPER_UID} --gid ${DEVELOPER_GID} -d /code -c "Developer User,,," ${DEVELOPER_USERNAME}' returned a non-zero code: 6

Vulnerabilities

Rails 4.1.12 has a few vulnerabilities.
Update to >= 4.2.5

Continuous updating

Quick question, who is responsible for updating this API? Is it SEPOMEX or Icalia? Is it reasonable to create code linking to this? (meaning will it be updated or maintained as needed?).

thanks!

Every request for a municipality returns the same name

When I request for example:
https://sepomex-api.herokuapp.com/api/v1/states/24/municipalities

Its return:

{

    "municipalities": [
        {
            "id": 106473,
            "name": "San Luis Potosí",
            "municipality_key": "028",
            "zip_code": "78001",
            "state_id": 24
        },
        {
            "id": 106474,
            "name": "San Luis Potosí",
            "municipality_key": "028",
            "zip_code": "78001",
            "state_id": 24
        },
        {
            "id": 106475,
            "name": "San Luis Potosí",
            "municipality_key": "028",
            "zip_code": "78001",
            "state_id": 24
        },

Even if I ask for a specific municipality it returns the same:
https://sepomex-api.herokuapp.com/api/v1/municipalities/106473
https://sepomex-api.herokuapp.com/api/v1/municipalities/106474

More than 15 per page

It is possible to request more than 15 elements?
For example the 32 states

Thanks

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.