René's URL Explorer Experiment


Title: Batch commit throws ServiceUnavailable: 503 Backend Error · Issue #866 · googleapis/google-cloud-python · GitHub

Open Graph Title: Batch commit throws ServiceUnavailable: 503 Backend Error · Issue #866 · googleapis/google-cloud-python

X Title: Batch commit throws ServiceUnavailable: 503 Backend Error · Issue #866 · googleapis/google-cloud-python

Description: See below: OPERATING SYSTEM $ uname -mrs Linux 3.19.5-100.fc20.x86_64 x86_64 ENVIRONMENT VARIABLES PYTHON 2.7 export PYTHONHOME=/usr/bin/python2.7 export PYTHONPATH=/usr/lib/python2.7/site-packages PYTHON modules for GCP export PYTHONPAT...

Open Graph Description: See below: OPERATING SYSTEM $ uname -mrs Linux 3.19.5-100.fc20.x86_64 x86_64 ENVIRONMENT VARIABLES PYTHON 2.7 export PYTHONHOME=/usr/bin/python2.7 export PYTHONPATH=/usr/lib/python2.7/site-packages...

X Description: See below: OPERATING SYSTEM $ uname -mrs Linux 3.19.5-100.fc20.x86_64 x86_64 ENVIRONMENT VARIABLES PYTHON 2.7 export PYTHONHOME=/usr/bin/python2.7 export PYTHONPATH=/usr/lib/python2.7/site-packages...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/866

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Batch commit throws ServiceUnavailable: 503 Backend Error","articleBody":"See below:\n\nOPERATING SYSTEM\n\n$ uname -mrs\nLinux 3.19.5-100.fc20.x86_64 x86_64\n\nENVIRONMENT VARIABLES\n# PYTHON 2.7\n# export PYTHONHOME=/usr/bin/python2.7\n\nexport PYTHONPATH=/usr/lib/python2.7/site-packages\n# PYTHON modules for GCP\n\nexport PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/bin\nexport PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/lib\nexport PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/lib/googlecloudsdk\nexport PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/lib/googlecloudsdk/gcloud\nexport PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/lib/googlecloudapis\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform/bq\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform/gcutil\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform/gcutil/lib\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform/gsutil\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform/gsutil/gslib\n# export PYTHONPATH=$PYTHONPATH:/home/charles/google-cloud-sdkgoogle-cloud-sdk/platform/gsutil/third_party\n# export PATH=$PATH:$PYTHONHOME\n\nexport PATH=$PATH:$PYTHONPATH\n# Google AppEngine SDK\n\nexport PATH=$PATH:/home/charles/google_appengine/\n# Google Cloud SDK\n\nexport CLOUDSDK_CONFIG=/home/charles/.config/gcloud\nexport CLOUDSDK_PYTHON=/usr/bin/python2.7\nexport CLOUDSDK_PYTHON_SITEPACKAGES=1\n# BOTO\n# export BOTO_CONFIG=/home/charles/.boto\n\nexport NVM_DIR=\"/home/charles/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] \u0026\u0026 . \"$NVM_DIR/nvm.sh\"  # This loads nvm\n# The next line updates PATH for the Google Cloud SDK.\n\nsource '/home/charles/google-cloud-sdk/path.bash.inc'\n# The next line enables bash completion for gcloud.\n\nsource '/home/charles/google-cloud-sdk/completion.bash.inc'\n\nFORM OF AUTHENTICATION\n\nThe credentialed account being used is the owner of the Google project, for which Cloud Datastore API is enabled.\n\nPYTHON CODE\n\nfrom gcloud import storage\nstorage.set_default_bucket('')\nstorage.set_default_project(_PROJECT_NAME)\nfrom gcloud import datastore\ndatastore.set_default_dataset_id(_DATA_SET_ID)\n# datastore.set_defaults(namespace=_NAMESPACE)\n\nfrom gcloud.datastore.batch import Batch\n\nimport traceback\n\ndef Load_Datastore():\n    try:\n        Get_Bucket_Metadata()\n        #set configuration variables  \n        storage_conn = storage.get_connection()\n        storage.set_default_connection(storage_conn)  \n        datastore_conn = datastore.get_connection()\n        datastore.set_default_connection(datastore_conn)\n\n```\n    for _BUCKET_NAME in _BUCKET_LIST:\n        print \"Bucket Name: %s\" % (_BUCKET_NAME)\n    .\n    .\n    .\n\n                #an empty list is false\n                if not _RECORDS:\n                    print \"_RECORDS is empty\"\n                else:\n                    print \"there are %s records to write into Datastore\"%(str(len(_RECORDS)))\n                    with datastore.batch.Batch(connection=datastore_conn) as batch:\n                        _ENTITIES=[]                                           \n                        for _RECORD in _RECORDS:\n                            _PROPERTIES=[]\n\n                            if _RECORD:\n                                for _KEY_VALUES in _RECORD:\n                                    _KEY_VALUE_PAIR=_KEY_VALUES.split('|')\n                                    if str(_KEY_VALUE_PAIR[0])=='ROW_KEY':\n                                        _ENTITY_KEY=str(_KEY_VALUE_PAIR[1])\n                                    else:\n                                        _PROPERTIES.append(\"%s|%s\"%(str(_KEY_VALUE_PAIR[0]),str(_KEY_VALUE_PAIR[1])))\n\n                            if not _PROPERTIES:   \n                                print \"_PROPERTIES is empty\"\n                            else:                                              \n                                try:\n                                    key = datastore.Key(_SOURCE_TABLE_NAME.upper(),_ENTITY_KEY,namespace=_NAMESPACE,dataset_id=_DATA_SET_ID)\n\n                                    try:\n                                        DS_ENTITY = datastore.Entity(key)\n                                        for _PROPERTY in _PROPERTIES:\n                                            _NAME_VALUE=_PROPERTY.split('|')\n                                            _COLUMN_NAME=str(_NAME_VALUE[0])\n                                            _COLUMN_VALUE=str(_NAME_VALUE[1])\n                                            DS_ENTITY.update({_COLUMN_NAME:_COLUMN_VALUE})\n                                        # Now let's save it to our datastore:\n                                        _ENTITIES.append(DS_ENTITY)                                 \n                                    except Exception, inst:\n                                        print \"datastore.Entity(%s) Unexpected error: %s\"%(str(_ENTITY_KEY),str(sys.exc_info()[0]))\n                                        if isinstance(inst,ValueError):\n                                            print \"ValueError: %s\"%(inst.message)\n                                        if isinstance(inst,AttributeError):\n                                            print \"AttributeError: %s\"%(inst.message)\n                                except Exception, inst:\n                                    print \"datastore.Key(_SOURCE_TABLE_NAME,_ENTITY_KEY,_NAMESPACE,_DATASET_ID Unexpected error: %s\"%(str(sys.exc_info()[0]))\n                                    if isinstance(inst,ValueError):\n                                        print \"ValueError: %s\"%(inst.message)\n                                    if isinstance(inst,AttributeError):\n                                        print \"AttributeError: %s\"%(inst.message)\n\n                        for _ENTITY in _ENTITIES:\n                            batch.put(_ENTITY)\n                            print 'batch.put(_ENTITY)'\n\n\nexcept Exception, inst:\n    print '\\nLoad_Datastore() Unexpected error: ' + str(sys.exc_info()[0])\n    if isinstance(inst,ValueError):\n        print \"ValueError: %s\\n\"%(inst.message)\n    if isinstance(inst,AttributeError):\n        print \"AttributeError: %s\\n\"%(inst.message)\n    if isinstance(inst,TypeError):\n        print \"TypeError: %s\\n\"%(inst.message)\n    print '-'*60\n    traceback.print_exc(file=sys.stdout)\n    print '-'*60                            \n    raise\n```\n\nSTACK TRACE\n## Load_Datastore() Unexpected error: \u003cclass 'gcloud.exceptions.ServiceUnavailable'\u003e\n\nTraceback (most recent call last):\n  File \"/home/charles/workspace_Python/HBaseSchemaFromXML/pkg1/datastore_loader.py\", line 326, in Load_Datastore\n    print 'batch.put(_ENTITY)'\n  File \"/usr/lib/python2.7/site-packages/gcloud-0.5.0-py2.7.egg/gcloud/datastore/batch.py\", line 232, in __exit__\n    self.commit()\n  File \"/usr/lib/python2.7/site-packages/gcloud-0.5.0-py2.7.egg/gcloud/datastore/batch.py\", line 207, in commit\n    response = self.connection.commit(self._dataset_id, self.mutation)\n  File \"/usr/lib/python2.7/site-packages/gcloud-0.5.0-py2.7.egg/gcloud/datastore/connection.py\", line 324, in commit\n    datastore_pb.CommitResponse)\n  File \"/usr/lib/python2.7/site-packages/gcloud-0.5.0-py2.7.egg/gcloud/datastore/connection.py\", line 108, in _rpc\n    data=request_pb.SerializeToString())\n  File \"/usr/lib/python2.7/site-packages/gcloud-0.5.0-py2.7.egg/gcloud/datastore/connection.py\", line 85, in _request\n    raise make_exception(headers, content, use_json=False)\n## ServiceUnavailable: 503 Backend Error\n\nUnexpected error: \u003cclass 'gcloud.exceptions.ServiceUnavailable'\u003e\nException instance type: \u003cclass 'gcloud.exceptions.ServiceUnavailable'\u003e\ndone.\n\n---\n\nRan 0 tests in 0.000s\n\nNOTES\n\nThe script executes all of the batch.put() statements, and then throws the above error after the 'when' clause finishes.\n\nAny suggestions on how to fix this bug are appreciated\n","author":{"url":"https://github.com/charlesbclifford","@type":"Person","name":"charlesbclifford"},"datePublished":"2015-05-09T00:38:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/866/google-cloud-python/issues/866"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cdafe411-73c0-54bb-89ff-4322b3ce4db5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE2E:F54DF:311B0:43857:6A4D2CEE
html-safe-noncea384c364c48739c8eb49da2252dbebbae0b72eaa6b6eae1c9d46ff7c710cbea5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTJFOkY1NERGOjMxMUIwOjQzODU3OjZBNEQyQ0VFIiwidmlzaXRvcl9pZCI6Ijg4NDg2NjQ4NTcwODQ2NzQzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac821d0fe084556e308c6c2be4a3a5aadc6b0dbbb30f7f45a32819c8f1f3c7fcfc
hovercard-subject-tagissue:74542734
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/googleapis/google-cloud-python/866/issue_layout
twitter:imagehttps://opengraph.githubassets.com/67688c82d8f7c06fb490520f513c8cf2cb1e3c2a7a66d6f22257a17ee7af3484/googleapis/google-cloud-python/issues/866
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/67688c82d8f7c06fb490520f513c8cf2cb1e3c2a7a66d6f22257a17ee7af3484/googleapis/google-cloud-python/issues/866
og:image:altSee below: OPERATING SYSTEM $ uname -mrs Linux 3.19.5-100.fc20.x86_64 x86_64 ENVIRONMENT VARIABLES PYTHON 2.7 export PYTHONHOME=/usr/bin/python2.7 export PYTHONPATH=/usr/lib/python2.7/site-packages...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecharlesbclifford
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
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
release93f17a978ee60bc4668e1d7b90e6bd2d622261fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/866#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F866
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F866
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=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/866
Reloadhttps://github.com/googleapis/google-cloud-python/issues/866
Reloadhttps://github.com/googleapis/google-cloud-python/issues/866
Please reload this pagehttps://github.com/googleapis/google-cloud-python/issues/866
googleapis https://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Fork 1.7k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Star 5.3k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-cloud-python
Code https://github.com/googleapis/google-cloud-python
Issues 437 https://github.com/googleapis/google-cloud-python/issues
Pull requests 129 https://github.com/googleapis/google-cloud-python/pulls
Discussions https://github.com/googleapis/google-cloud-python/discussions
Actions https://github.com/googleapis/google-cloud-python/actions
Projects https://github.com/googleapis/google-cloud-python/projects
Security and quality 0 https://github.com/googleapis/google-cloud-python/security
Insights https://github.com/googleapis/google-cloud-python/pulse
Code https://github.com/googleapis/google-cloud-python
Issues https://github.com/googleapis/google-cloud-python/issues
Pull requests https://github.com/googleapis/google-cloud-python/pulls
Discussions https://github.com/googleapis/google-cloud-python/discussions
Actions https://github.com/googleapis/google-cloud-python/actions
Projects https://github.com/googleapis/google-cloud-python/projects
Security and quality https://github.com/googleapis/google-cloud-python/security
Insights https://github.com/googleapis/google-cloud-python/pulse
Batch commit throws ServiceUnavailable: 503 Backend Errorhttps://github.com/googleapis/google-cloud-python/issues/866#top
https://github.com/charlesbclifford
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
https://github.com/charlesbclifford
charlesbcliffordhttps://github.com/charlesbclifford
on May 9, 2015https://github.com/googleapis/google-cloud-python/issues/866#issue-74542734
charlesbcliffordhttps://github.com/charlesbclifford
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20question%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.