René's URL Explorer Experiment


Title: Getting started code throws error in notebook · Issue #467 · microsoft/azure-devops-python-api · GitHub

Open Graph Title: Getting started code throws error in notebook · Issue #467 · microsoft/azure-devops-python-api

X Title: Getting started code throws error in notebook · Issue #467 · microsoft/azure-devops-python-api

Description: Running this code from the Getting Started section of the readme.md: from azure.devops.connection import Connection from msrest.authentication import BasicAuthentication import pprint # Fill in with your personal access token and org URL...

Open Graph Description: Running this code from the Getting Started section of the readme.md: from azure.devops.connection import Connection from msrest.authentication import BasicAuthentication import pprint # Fill in wit...

X Description: Running this code from the Getting Started section of the readme.md: from azure.devops.connection import Connection from msrest.authentication import BasicAuthentication import pprint # Fill in wit...

Opengraph URL: https://github.com/microsoft/azure-devops-python-api/issues/467

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Getting started code throws error in notebook","articleBody":"Running this code from the Getting Started section of the readme.md:\r\n\r\n```\r\nfrom azure.devops.connection import Connection\r\nfrom msrest.authentication import BasicAuthentication\r\nimport pprint\r\n\r\n# Fill in with your personal access token and org URL\r\npersonal_access_token = '**removed**'\r\norganization_url = 'https://**notthedevdomain**.visualstudio.com/'\r\n\r\n# Create a connection to the org\r\ncredentials = BasicAuthentication('', personal_access_token)\r\nconnection = Connection(base_url=organization_url, creds=credentials)\r\n\r\n# Get a client (the \"core\" client provides access to projects, teams, etc)\r\ncore_client = connection.clients.get_core_client()\r\n\r\n# Get the first page of projects\r\nget_projects_response = core_client.get_projects()\r\nindex = 0\r\nwhile get_projects_response is not None:\r\n    for project in get_projects_response.value:\r\n        pprint.pprint(\"[\" + str(index) + \"] \" + project.name)\r\n        index += 1\r\n    if get_projects_response.continuation_token is not None and get_projects_response.continuation_token != \"\":\r\n        # Get the next page of projects\r\n        get_projects_response = core_client.get_projects(continuation_token=get_projects_response.continuation_token)\r\n    else:\r\n        # All projects have been retrieved\r\n        get_projects_response = None\r\n```\r\n\r\nProduces this error:\r\n```\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n/tmp/ipykernel_19/1987585116.py in \u003ccell line: 19\u003e()\r\n     18 index = 0\r\n     19 while get_projects_response is not None:\r\n---\u003e 20     for project in get_projects_response.value:\r\n     21         pprint.pprint(\"[\" + str(index) + \"] \" + project.name)\r\n     22         index += 1\r\n\r\nAttributeError: 'list' object has no attribute 'value'\r\n```\r\n\r\nIn this environment:\r\n\r\n\u003e ArcGIS Notebooks\r\n\u003e Server Information:\r\n\u003e You are using Jupyter notebook.\r\n\u003e \r\n\u003e The version of the notebook server is: 6.4.12\r\n\u003e The server is running on this version of Python:\r\n\u003e Python 3.9.16 (main, Jan 11 2023, 16:05:54) \r\n\u003e [GCC 11.2.0]\r\n\u003e \r\n\u003e Current Kernel Information:\r\n\u003e Python 3.9.16 (main, Jan 11 2023, 16:05:54) \r\n\u003e Type 'copyright', 'credits' or 'license' for more information\r\n\u003e IPython 7.34.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nTo solve this error you have to remove the \".value\" on get_projects_response on line 20.\r\n\r\n```\r\nwhile get_projects_response is not None:\r\n    for project in get_projects_response:\r\n```\r\nrather than the current:\r\n\r\n```\r\nwhile get_projects_response is not None:\r\n    for project in get_projects_response.value:\r\n```\r\nWould be cool if the readme.md could get updated to improve the onboarding experience for this package.","author":{"url":"https://github.com/uncheckederror","@type":"Person","name":"uncheckederror"},"datePublished":"2023-08-17T20:01:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/467/azure-devops-python-api/issues/467"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:10d6f60e-1819-30ee-30fb-f80eeb378f6e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9528:30D095:10BD40B:15F5E91:697D446D
html-safe-nonce03849f8d3115064006101bff1dc6c96b7eb12dc6131bae56a7b1590bfa401155
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTI4OjMwRDA5NToxMEJENDBCOjE1RjVFOTE6Njk3RDQ0NkQiLCJ2aXNpdG9yX2lkIjoiODM4NDE4Njc1ODE0MDM0NzUwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf72c06f4cf1c3f57eec89c6c3a7e8114964f3ad645ae0471f6ad6b92acb791d7
hovercard-subject-tagissue:1855627299
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/microsoft/azure-devops-python-api/467/issue_layout
twitter:imagehttps://opengraph.githubassets.com/73f1519eb6bdd3c14687b8e97329ea1dc7a791f7db59d18cb063021e1bd4b46a/microsoft/azure-devops-python-api/issues/467
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/73f1519eb6bdd3c14687b8e97329ea1dc7a791f7db59d18cb063021e1bd4b46a/microsoft/azure-devops-python-api/issues/467
og:image:altRunning this code from the Getting Started section of the readme.md: from azure.devops.connection import Connection from msrest.authentication import BasicAuthentication import pprint # Fill in wit...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameuncheckederror
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/microsoft/azure-devops-python-api git https://github.com/microsoft/azure-devops-python-api.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id107710074
octolytics-dimension-repository_nwomicrosoft/azure-devops-python-api
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id107710074
octolytics-dimension-repository_network_root_nwomicrosoft/azure-devops-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
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues/467#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fazure-devops-python-api%2Fissues%2F467
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fazure-devops-python-api%2Fissues%2F467
Sign up https://patch-diff.githubusercontent.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=microsoft%2Fazure-devops-python-api
Reloadhttps://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues/467
Reloadhttps://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues/467
Reloadhttps://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues/467
microsoft https://patch-diff.githubusercontent.com/microsoft
azure-devops-python-apihttps://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2Fazure-devops-python-api
Fork 218 https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2Fazure-devops-python-api
Star 675 https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2Fazure-devops-python-api
Code https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api
Issues 142 https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues
Pull requests 13 https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/pulls
Actions https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/actions
Projects 0 https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/projects
Models https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/models
Security 0 https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/security
Insights https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/pulse
Code https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api
Issues https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues
Pull requests https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/pulls
Actions https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/actions
Projects https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/projects
Models https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/models
Security https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/security
Insights https://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/azure-devops-python-api/issues/467
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/azure-devops-python-api/issues/467
Getting started code throws error in notebookhttps://patch-diff.githubusercontent.com/microsoft/azure-devops-python-api/issues/467#top
https://github.com/uncheckederror
https://github.com/uncheckederror
uncheckederrorhttps://github.com/uncheckederror
on Aug 17, 2023https://github.com/microsoft/azure-devops-python-api/issues/467#issue-1855627299
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.