Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on Returning a Product where text Does Not Exist #61

Closed
justinyost opened this issue Dec 13, 2017 · 1 comment
Closed

Issues on Returning a Product where text Does Not Exist #61

justinyost opened this issue Dec 13, 2017 · 1 comment

Comments

@justinyost
Copy link
Contributor

As an example scanning this url: https://www.bhphotovideo.com/c/product/1365551-REG/synology_ds418play_diskstation_4_bay.html with the Product API does not return the text field. Resulting in errors in attempting to process the response.

{
  "request": {
    "options": [
      "_=1513203180811",
      "callback=jQuery111107118896645815873_1513203180810",
      "format=jsonp"
    ],
    "pageUrl": "https://www.bhphotovideo.com/c/product/1365551-REG/synology_ds418play_diskstation_4_bay.html",
    "api": "product",
    "version": 3
  },
  "objects": [
    {
      "images": [
        {
          "xpath": "/html[1]/body[1]/div[1]/div[2]/div[2]/div[1]/div[3]/div[1]/div[1]/a[1]/img[1]",
          "naturalHeight": 500,
          "width": 392,
          "diffbotUri": "image|3|483071054",
          "title": "Synology DS418play Diskstation 4 Bay Nas",
          "url": "https://static.bhphoto.com/images/images500x500/synology_ds418play_diskstation_4_bay_1507130659000_1365551.jpg",
          "naturalWidth": 500,
          "primary": true,
          "height": 392
        }
      ],
      "offerPrice": "$429.99",
      "productId": "DS418PLAY",
      "diffbotUri": "product|3|-1255355555",
      "mpn": "DS418PLAY",
      "multipleProducts": true,
      "availability": true,
      "type": "product",
      "title": "Synology DS418play Diskstation 4 Bay Nas",
      "offerPriceDetails": {
        "symbol": "$",
        "amount": 429.99,
        "text": "$429.99"
      },
      "breadcrumb": [
        {
          "link": "https://www.bhphotovideo.com",
          "name": "Home"
        },
        {
          "link": "https://www.bhphotovideo.com/c/browse/Computers/ci/9581/N/4294542559",
          "name": "Computers"
        },
        {
          "link": "https://www.bhphotovideo.com/c/browse/Drives-Storage/ci/13216/N/4294542392",
          "name": "Drives & Storage"
        },
        {
          "link": "https://www.bhphotovideo.com/c/browse/Network-Attached-Storage-NAS-/ci/26927/N/3832759815",
          "name": "Network Attached Storage (NAS)"
        },
        {
          "link": "https://www.bhphotovideo.com/c/buy/NAS-Enclosures/ci/26903/N/3832759809",
          "name": "NAS Enclosures"
        },
        {
          "link": "https://www.bhphotovideo.com/c/product/1365551-REG/synology_ds418play_diskstation_4_bay.html",
          "name": "Synology DiskStation DS418play"
        },
        {
          "link": "https://www.bhphotovideo.com/c/product/1365551-REG/tzftqtxwebbdfaedfe.html",
          "name": "wyfeweadbyrxbefatwsewxtwwsdybwsyef"
        }
      ],
      "humanLanguage": "en",
      "pageUrl": "https://www.bhphotovideo.com/c/product/1365551-REG/synology_ds418play_diskstation_4_bay.html",
      "category": "Computers",
      "sku": "SYDS418PLAY",
      "brand": "Synology"
    }
  ],
  "url": "https://www.bhphotovideo.com/c/product/1365551-REG/synology_ds418play_diskstation_4_bay.html"
}
@justinyost
Copy link
Contributor Author

Issue closed as PR fix has been merged, thanks @Swader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant