René's URL Explorer Experiment


Title: Error reporting POST to Product error · Issue #209 · Shopify/shopify_python_api · GitHub

Open Graph Title: Error reporting POST to Product error · Issue #209 · Shopify/shopify_python_api

X Title: Error reporting POST to Product error · Issue #209 · Shopify/shopify_python_api

Description: When there is an error in the product or variants that are sent via post to the Product endpoint, the error message is structured in a way that the underlying pyactiveresource.connection.ResourceInvalid object cannot decode it properly, ...

Open Graph Description: When there is an error in the product or variants that are sent via post to the Product endpoint, the error message is structured in a way that the underlying pyactiveresource.connection.ResourceIn...

X Description: When there is an error in the product or variants that are sent via post to the Product endpoint, the error message is structured in a way that the underlying pyactiveresource.connection.ResourceIn...

Opengraph URL: https://github.com/Shopify/shopify_python_api/issues/209

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error reporting POST to Product error","articleBody":"When there is an error in the product or variants that are sent via post to the Product endpoint, the error message is structured in a way that the underlying pyactiveresource.connection.ResourceInvalid object cannot decode it properly, which leads to a very un-informative error.\r\nPlease see stacktrace below:\r\n````\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\connection.py\", line 286, in _open\r\n    http_response = self._handle_error(self._urlopen(request))\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\connection.py\", line 318, in _urlopen\r\n    return urllib.request.urlopen(request)\r\n  File \"C:\\Python34\\lib\\urllib\\request.py\", line 161, in urlopen\r\n    return opener.open(url, data, timeout)\r\n  File \"C:\\Python34\\lib\\urllib\\request.py\", line 469, in open\r\n    response = meth(req, response)\r\n  File \"C:\\Python34\\lib\\urllib\\request.py\", line 579, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"C:\\Python34\\lib\\urllib\\request.py\", line 507, in error\r\n    return self._call_chain(*args)\r\n  File \"C:\\Python34\\lib\\urllib\\request.py\", line 441, in _call_chain\r\n    result = func(*args)\r\n  File \"C:\\Python34\\lib\\urllib\\request.py\", line 587, in http_error_default\r\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\nurllib.error.HTTPError: HTTP Error 422: Unprocessable Entity\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\activeresource.py\", line 824, in save\r\n    data=self.encode())\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\connection.py\", line 364, in post\r\n    return self._open('POST', path, headers=headers, data=data)\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\shopify\\base.py\", line 23, in _open\r\n    self.response = super(ShopifyConnection, self)._open(*args, **kwargs)\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\connection.py\", line 288, in _open\r\n    http_response = self._handle_error(err)\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\connection.py\", line 414, in _handle_error\r\n    raise ResourceInvalid(err)\r\npyactiveresource.connection.ResourceInvalid: Response(code=422, body=\"b'{\"errors\":{\"base\":[\"The variant \\'Antique Bronze \\\\/ Ice pattern\\' already exists. Please change at least one option value.\"]}}'\", headers={'X-XSS-Protection': '1; mode=block; report=/xss-report?source%5Baction%5D=create\u0026source%', 'X-Frame-Options': 'DENY', 'X-Stats-UserId': '0', 'X-Content-Type-Options': 'nosniff', , 'Date': 'Wed, 06 Sep 2017 17:17:23 GMT', 'Strict-Transport-Security': 'max-age=7776000', 'X-Stats-ApiPermissionId': '42905249', 'X-Sorting-Hat-PodId-Cached': '0', 'Content-Security-Policy': \"default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; script-src https://cdn.shopify.com https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://dme0ih8comzn4.cloudfront.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://maps.googleapis.com https://stats.g.doubleclick.net https://www.google-analytics.com https://visitors.shopify.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=create\u0026source%5Bapp%5D=Shopify\u0026source%5Bcontroller%5D=admin%2Fproducts\u0026source%5Bsection%5D=admin_api\u0026source%5Buuid%5D=5e3df701-e2e3-4b70-bda3-b7d15592a0f5\", 'X-Sorting-Hat-ShopId-Cached': '0', 'Connection': 'close', 'Referrer-Policy': 'origin-when-cross-origin', 'X-Request-Id': '5e3df701-e2e3-4b70-bda3-b7d15592a0f5', 'X-Shopify-Shop-Api-Call-Limit': '1/40', 'Content-Type': 'application/json; charset=utf-8', 'Server': 'nginx', 'X-ShardId': '15', 'X-Dc': 'ash', 'Transfer-Encoding': 'chunked', 'X-Download-Options': 'noopen', 'X-Permitted-Cross-Domain-Policies': 'none', 'HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT': '1/40', 'X-Sorting-Hat-PodId': '15', 'X-Sorting-Hat-Section': 'pod'}, msg=\"Unprocessable Entity\")\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\xologic_connection\\product.py\", line 692, in create_on_shopify\r\n    success = new_product.save()\r\n  File \"C:\\Users\\user\\Dropbox\\virtualenvs\\lighting\\lib\\site-packages\\pyactiveresource\\activeresource.py\", line 832, in save\r\n    self.errors.from_json(err.response.body)\r\nAttributeError: 'list' object has no attribute 'from_json'\r\n```\r\nThe relevant error is \r\n`body=\"b'{\"errors\":{\"base\":[\"The variant \\'Antique Bronze \\\\/ Ice pattern\\' already exists. Please change at least one option value.\"]}}'\", `\r\n\r\nIt would be nice to get just that.","author":{"url":"https://github.com/hgolov","@type":"Person","name":"hgolov"},"datePublished":"2017-09-06T17:33:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/209/shopify_python_api/issues/209"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2db09818-13da-d673-e0f9-93403cc9d5c9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA106:240939:CC451B:111A181:69698893
html-safe-nonce4eccf26d919cfdd0943268c0a93568004464d0a31c9a65fa1b5920214abad70f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTA2OjI0MDkzOTpDQzQ1MUI6MTExQTE4MTo2OTY5ODg5MyIsInZpc2l0b3JfaWQiOiI1MzgxNjM4MDQ3MDcxMzA3OTIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb2e9931bc0122295c7067a9a7b4fe1d1d915fea6ed140e162a55f8b99e4353b8
hovercard-subject-tagissue:255684510
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Shopify/shopify_python_api/209/issue_layout
twitter:imagehttps://avatars.githubusercontent.com/u/8085?s=400&v=4
twitter:cardsummary
og:imagehttps://avatars.githubusercontent.com/u/8085?s=400&v=4
og:image:altWhen there is an error in the product or variants that are sent via post to the Product endpoint, the error message is structured in a way that the underlying pyactiveresource.connection.ResourceIn...
og:site_nameGitHub
og:typeobject
og:author:usernamehgolov
hostnamegithub.com
expected-hostnamegithub.com
None533e7cac596c452090972c1150d587fd0b36531b8dc4e8bbfe4ab694aca02408
turbo-cache-controlno-preview
go-importgithub.com/Shopify/shopify_python_api git https://github.com/Shopify/shopify_python_api.git
octolytics-dimension-user_id8085
octolytics-dimension-user_loginShopify
octolytics-dimension-repository_id2249127
octolytics-dimension-repository_nwoShopify/shopify_python_api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id2249127
octolytics-dimension-repository_network_root_nwoShopify/shopify_python_api
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release63d27af10eea2ccab520b162530cf6c7b739e767
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Shopify/shopify_python_api/issues/209#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FShopify%2Fshopify_python_api%2Fissues%2F209
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FShopify%2Fshopify_python_api%2Fissues%2F209
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Shopify%2Fshopify_python_api
Reloadhttps://github.com/Shopify/shopify_python_api/issues/209
Reloadhttps://github.com/Shopify/shopify_python_api/issues/209
Reloadhttps://github.com/Shopify/shopify_python_api/issues/209
Shopify https://github.com/Shopify
shopify_python_apihttps://github.com/Shopify/shopify_python_api
Notifications https://github.com/login?return_to=%2FShopify%2Fshopify_python_api
Fork 390 https://github.com/login?return_to=%2FShopify%2Fshopify_python_api
Star 1.4k https://github.com/login?return_to=%2FShopify%2Fshopify_python_api
Code https://github.com/Shopify/shopify_python_api
Issues 13 https://github.com/Shopify/shopify_python_api/issues
Pull requests 11 https://github.com/Shopify/shopify_python_api/pulls
Actions https://github.com/Shopify/shopify_python_api/actions
Models https://github.com/Shopify/shopify_python_api/models
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/Shopify/shopify_python_api/security
Please reload this pagehttps://github.com/Shopify/shopify_python_api/issues/209
Insights https://github.com/Shopify/shopify_python_api/pulse
Code https://github.com/Shopify/shopify_python_api
Issues https://github.com/Shopify/shopify_python_api/issues
Pull requests https://github.com/Shopify/shopify_python_api/pulls
Actions https://github.com/Shopify/shopify_python_api/actions
Models https://github.com/Shopify/shopify_python_api/models
Security https://github.com/Shopify/shopify_python_api/security
Insights https://github.com/Shopify/shopify_python_api/pulse
New issuehttps://github.com/login?return_to=https://github.com/Shopify/shopify_python_api/issues/209
New issuehttps://github.com/login?return_to=https://github.com/Shopify/shopify_python_api/issues/209
Error reporting POST to Product errorhttps://github.com/Shopify/shopify_python_api/issues/209#top
feature requesthttps://github.com/Shopify/shopify_python_api/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com/hgolov
https://github.com/hgolov
hgolovhttps://github.com/hgolov
on Sep 6, 2017https://github.com/Shopify/shopify_python_api/issues/209#issue-255684510
feature requesthttps://github.com/Shopify/shopify_python_api/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.