CityOfPhiladelphia / property

Property Search Application
property.phila.gov
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

API responding differently in app than browser tab #6

Open timwis opened 10 years ago

timwis commented 10 years ago

This is quite bizarre, but we seem to have caught an anomaly in the wild.

If you search [407 bainbridge](http://property.phila.gov/#address/407 bainbridge) on the app, it finds a result and takes you to the property properly. If you view the network tab during the search, you can see the request to the API for this call and the proper response:

{
    "status": "success",
    "total": 1,
    "data": {
        "properties": [
            {
                "property_id": "1546000407",
                "account_number": "871270700",
                "full_address": "407 BAINBRIDGE ST",
                "unit": "",
                "zip": "19147-1526",
                "address_match": {
                    "original": "407 bainbridge",
                    "standardized": "407 BAINBRIDGE ST",
                    "similarity": 92,
                    "match_code": "",
                    "match_type": "MA"
                },
                .......
            }
        ]
    }
}

If you right-click that request and open it in a new tab (direct link), you'll get a completely different response, with no results:

        {
            "status": "success",
            "total": 0,
            "data": {
                "properties": []
            }
        }

Am I crazy or is this happening to everyone? I've even tried replicating the exact call with all the headers that the application includes inside a REST Console. What's going on?

andreymun commented 10 years ago

Tim,

The issue could not be replicated. Both the direct link to the API and Property Search application return the same response.

The application logs do not contain any exceptions either. Could this possibly be a caching issue?

Thanks,

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Tim Wisniewski [notifications@github.com] Sent: Monday, December 16, 2013 5:28 PM To: CityOfPhiladelphia/property Cc: Andrey Mun Subject: [property] API responding differently in app than browser tab (#6)

This is quite bizarre, but we seem to have caught an anomaly in the wild.

If you search 407 bainbridgehttp://property.phila.gov/#address/407%20bainbridge on the app, it finds a result and takes you to the property properly. If you view the network tab during the search, you can see the request to the API for this call and the proper response:

{ "status": "success", "total": 1, "data": { "properties": [ { "property_id": "1546000407", "account_number": "871270700", "full_address": "407 BAINBRIDGE ST", "unit": "", "zip": "19147-1526", "address_match": { "original": "407 bainbridge", "standardized": "407 BAINBRIDGE ST", "similarity": 92, "match_code": "", "match_type": "MA" }, ....... } ] } }```

If you right-click that request and open it in a new tab (direct link), you'll get a completely different response, with no results:

{ status: "success", total: 0, data: { properties: [ ] } }```

Am I crazy or is this happening to everyone? I've even tried replicating the exact call with all the headers that the application includes inside a REST Console. What's going on?

— Reply to this email directly or view it on GitHubhttps://github.com/CityOfPhiladelphia/property/issues/6.

timwis commented 10 years ago

Odd, I tried it from home and was able to replicate it. See screenshots of the network tab in dev tools when I search in the application:

20131217171948432 20131217172015743

And then when I open the request in a new tab:

20131217172008352

You're saying when you browse here: http://services.phila.gov/OPA/v1.0/address/407%20BAINBRIDGE/?format=json&limit=30&skip=0

It gives you properties?

andreymun commented 10 years ago

Tim,

The issue is caused by an inconsistent response returned by the ULRS' Standardize Web Service.

The GIS Team has been notified.

Thanks,

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Tim Wisniewski [notifications@github.com] Sent: Tuesday, December 17, 2013 12:22 PM To: CityOfPhiladelphia/property Cc: Andrey Mun Subject: Re: [property] API responding differently in app than browser tab (#6)

Odd, I tried it from home and was able to replicate it. See screenshots of the network tab in dev tools when I search in the application:

[20131217171948432]https://f.cloud.github.com/assets/761444/1766125/8d73896c-673f-11e3-9f78-f3cb3ef71801.png [20131217172015743]https://f.cloud.github.com/assets/761444/1766127/90647938-673f-11e3-8dd8-6656fb0c0646.png

And then when I open the request in a new tab:

[20131217172008352]https://f.cloud.github.com/assets/761444/1766129/93446924-673f-11e3-8134-bb04f3da0bee.png

You're saying when you browse here: http://services.phila.gov/OPA/v1.0/address/407%20BAINBRIDGE/?format=json&limit=30&skip=0

It gives you properties?

— Reply to this email directly or view it on GitHubhttps://github.com/CityOfPhiladelphia/property/issues/6#issuecomment-30770893.

andreymun commented 10 years ago

I am not sure if a service ticket was created or not. Please be sure to create service tickets surrounding requests and issues. I copied the service desk so that a ticket can be generated.

Thanks,


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Andrey Mun Sent: Tuesday, December 17, 2013 01:01 PM Eastern Standard Time To: CityOfPhiladelphia/property reply@reply.github.com; CityOfPhiladelphia/property property@noreply.github.com Cc: Tim Wisniewski; Charletta Kidd Subject: RE: [property] API responding differently in app than browser tab (#6)

Tim,

The issue is caused by an inconsistent response returned by the ULRS' Standardize Web Service.

The GIS Team has been notified.

Thanks,

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Tim Wisniewski [notifications@github.com] Sent: Tuesday, December 17, 2013 12:22 PM To: CityOfPhiladelphia/property Cc: Andrey Mun Subject: Re: [property] API responding differently in app than browser tab (#6)

Odd, I tried it from home and was able to replicate it. See screenshots of the network tab in dev tools when I search in the application:

[20131217171948432]https://f.cloud.github.com/assets/761444/1766125/8d73896c-673f-11e3-9f78-f3cb3ef71801.png [20131217172015743]https://f.cloud.github.com/assets/761444/1766127/90647938-673f-11e3-8dd8-6656fb0c0646.png

And then when I open the request in a new tab:

[20131217172008352]https://f.cloud.github.com/assets/761444/1766129/93446924-673f-11e3-8134-bb04f3da0bee.png

You're saying when you browse here: http://services.phila.gov/OPA/v1.0/address/407%20BAINBRIDGE/?format=json&limit=30&skip=0

It gives you properties?

— Reply to this email directly or view it on GitHubhttps://github.com/CityOfPhiladelphia/property/issues/6#issuecomment-30770893.

andreymun commented 10 years ago

Ticket number is DCHE194325.


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Charletta Kidd Sent: Tuesday, December 17, 2013 01:05 PM Eastern Standard Time To: Andrey Mun; 'reply@reply.github.com' reply@reply.github.com; 'property@noreply.github.com' property@noreply.github.com; it help; James Bentley; David Walk Cc: Tim Wisniewski; Brian Ivey Subject: Re: [property] API responding differently in app than browser tab (#6)

I am not sure if a service ticket was created or not. Please be sure to create service tickets surrounding requests and issues. I copied the service desk so that a ticket can be generated.

Thanks,


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Andrey Mun Sent: Tuesday, December 17, 2013 01:01 PM Eastern Standard Time To: CityOfPhiladelphia/property reply@reply.github.com; CityOfPhiladelphia/property property@noreply.github.com Cc: Tim Wisniewski; Charletta Kidd Subject: RE: [property] API responding differently in app than browser tab (#6)

Tim,

The issue is caused by an inconsistent response returned by the ULRS' Standardize Web Service.

The GIS Team has been notified.

Thanks,

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Tim Wisniewski [notifications@github.com] Sent: Tuesday, December 17, 2013 12:22 PM To: CityOfPhiladelphia/property Cc: Andrey Mun Subject: Re: [property] API responding differently in app than browser tab (#6)

Odd, I tried it from home and was able to replicate it. See screenshots of the network tab in dev tools when I search in the application:

[20131217171948432]https://f.cloud.github.com/assets/761444/1766125/8d73896c-673f-11e3-9f78-f3cb3ef71801.png [20131217172015743]https://f.cloud.github.com/assets/761444/1766127/90647938-673f-11e3-8dd8-6656fb0c0646.png

And then when I open the request in a new tab:

[20131217172008352]https://f.cloud.github.com/assets/761444/1766129/93446924-673f-11e3-8134-bb04f3da0bee.png

You're saying when you browse here: http://services.phila.gov/OPA/v1.0/address/407%20BAINBRIDGE/?format=json&limit=30&skip=0

It gives you properties?

— Reply to this email directly or view it on GitHubhttps://github.com/CityOfPhiladelphia/property/issues/6#issuecomment-30770893.

andreymun commented 10 years ago

Thanks, Charletta.

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Charletta Kidd Sent: Tuesday, December 17, 2013 1:06 PM To: Andrey Mun; 'reply@reply.github.com'; 'property@noreply.github.com'; James Bentley; David Walk Cc: Tim Wisniewski; Brian Ivey Subject: Re: [property] API responding differently in app than browser tab (#6)

Ticket number is DCHE194325.


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Charletta Kidd Sent: Tuesday, December 17, 2013 01:05 PM Eastern Standard Time To: Andrey Mun; 'reply@reply.github.com' reply@reply.github.com; 'property@noreply.github.com' property@noreply.github.com; it help; James Bentley; David Walk Cc: Tim Wisniewski; Brian Ivey Subject: Re: [property] API responding differently in app than browser tab (#6)

I am not sure if a service ticket was created or not. Please be sure to create service tickets surrounding requests and issues. I copied the service desk so that a ticket can be generated.

Thanks,


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Andrey Mun Sent: Tuesday, December 17, 2013 01:01 PM Eastern Standard Time To: CityOfPhiladelphia/property reply@reply.github.com; CityOfPhiladelphia/property property@noreply.github.com Cc: Tim Wisniewski; Charletta Kidd Subject: RE: [property] API responding differently in app than browser tab (#6)

Tim,

The issue is caused by an inconsistent response returned by the ULRS' Standardize Web Service.

The GIS Team has been notified.

Thanks,

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Tim Wisniewski [notifications@github.com] Sent: Tuesday, December 17, 2013 12:22 PM To: CityOfPhiladelphia/property Cc: Andrey Mun Subject: Re: [property] API responding differently in app than browser tab (#6)

Odd, I tried it from home and was able to replicate it. See screenshots of the network tab in dev tools when I search in the application:

[20131217171948432]https://f.cloud.github.com/assets/761444/1766125/8d73896c-673f-11e3-9f78-f3cb3ef71801.png [20131217172015743]https://f.cloud.github.com/assets/761444/1766127/90647938-673f-11e3-8dd8-6656fb0c0646.png

And then when I open the request in a new tab:

[20131217172008352]https://f.cloud.github.com/assets/761444/1766129/93446924-673f-11e3-8134-bb04f3da0bee.png

You're saying when you browse here: http://services.phila.gov/OPA/v1.0/address/407%20BAINBRIDGE/?format=json&limit=30&skip=0

It gives you properties?

— Reply to this email directly or view it on GitHubhttps://github.com/CityOfPhiladelphia/property/issues/6#issuecomment-30770893.

andreymun commented 10 years ago

It looks like you get a correct response if you add st, ave, or dr to the end. Let me look at some things.

James Bentley City of Philadelphia | GIS Services Group Office of Innovation and Technology 215.686.5926 WWW.PHILA.GOV/MAPhttp://www.phila.gov/MAP MAPS.PHILA.GOVhttp://maps.phila.gov/

From: Andrey Mun Sent: Tuesday, December 17, 2013 1:07 PM To: Charletta Kidd; 'reply@reply.github.com'; 'property@noreply.github.com'; James Bentley; David Walk Cc: Tim Wisniewski; Brian Ivey Subject: RE: [property] API responding differently in app than browser tab (#6)

Thanks, Charletta.

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Charletta Kidd Sent: Tuesday, December 17, 2013 1:06 PM To: Andrey Mun; 'reply@reply.github.com'; 'property@noreply.github.com'; James Bentley; David Walk Cc: Tim Wisniewski; Brian Ivey Subject: Re: [property] API responding differently in app than browser tab (#6) Ticket number is DCHE194325.


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Charletta Kidd Sent: Tuesday, December 17, 2013 01:05 PM Eastern Standard Time To: Andrey Mun; 'reply@reply.github.com' reply@reply.github.com; 'property@noreply.github.com' property@noreply.github.com; it help; James Bentley; David Walk Cc: Tim Wisniewski; Brian Ivey Subject: Re: [property] API responding differently in app than browser tab (#6)

I am not sure if a service ticket was created or not. Please be sure to create service tickets surrounding requests and issues. I copied the service desk so that a ticket can be generated.

Thanks,


Charletta Kidd Lead Software Engineer OIT | Web Services Unit

City of Philadelphia 1234 Market St. 15th Floor 215.686.8292 (o) 215.823.9612 (m) http://www.phila.gov

Sent via my BlackBerry

From: Andrey Mun Sent: Tuesday, December 17, 2013 01:01 PM Eastern Standard Time To: CityOfPhiladelphia/property reply@reply.github.com; CityOfPhiladelphia/property property@noreply.github.com Cc: Tim Wisniewski; Charletta Kidd Subject: RE: [property] API responding differently in app than browser tab (#6)

Tim,

The issue is caused by an inconsistent response returned by the ULRS' Standardize Web Service.

The GIS Team has been notified.

Thanks,

ANDREY MUN Senior Software Engineer City of Philadelphia | OIT 1234 Market Street 215.686.8226


From: Tim Wisniewski [notifications@github.com] Sent: Tuesday, December 17, 2013 12:22 PM To: CityOfPhiladelphia/property Cc: Andrey Mun Subject: Re: [property] API responding differently in app than browser tab (#6)

Odd, I tried it from home and was able to replicate it. See screenshots of the network tab in dev tools when I search in the application:

[20131217171948432]https://f.cloud.github.com/assets/761444/1766125/8d73896c-673f-11e3-9f78-f3cb3ef71801.png [20131217172015743]https://f.cloud.github.com/assets/761444/1766127/90647938-673f-11e3-8dd8-6656fb0c0646.png

And then when I open the request in a new tab:

[20131217172008352]https://f.cloud.github.com/assets/761444/1766129/93446924-673f-11e3-8134-bb04f3da0bee.png

You're saying when you browse here: http://services.phila.gov/OPA/v1.0/address/407%20BAINBRIDGE/?format=json&limit=30&skip=0

It gives you properties?

Reply to this email directly or view it on GitHubhttps://github.com/CityOfPhiladelphia/property/issues/6#issuecomment-30770893.