René's URL Explorer Experiment


Title: TypeError: string indices must be integers · Issue #2 · bennybauer/serverless-python-sample · GitHub

Open Graph Title: TypeError: string indices must be integers · Issue #2 · bennybauer/serverless-python-sample

X Title: TypeError: string indices must be integers · Issue #2 · bennybauer/serverless-python-sample

Description: Recieved from Andrea Catalucci: I’m using your serverless-python-sample git repo as a starting point for a python project, and after successfully deploying the service I am not able to call the functions through curl. I’ve followed READM...

Open Graph Description: Recieved from Andrea Catalucci: I’m using your serverless-python-sample git repo as a starting point for a python project, and after successfully deploying the service I am not able to call the fun...

X Description: Recieved from Andrea Catalucci: I’m using your serverless-python-sample git repo as a starting point for a python project, and after successfully deploying the service I am not able to call the fun...

Opengraph URL: https://github.com/bennybauer/serverless-python-sample/issues/2

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: string indices must be integers","articleBody":"Recieved from Andrea Catalucci:\r\n\r\n> I’m using your serverless-python-sample git repo as a starting point for a python project, and after successfully deploying the service I am not able to call the functions through curl.\r\n> I’ve followed README.md instructions with no problems, I can invoke both functions successfully (locally and remotely with -p event.json), but calling them through the web API doesn’t seem to work.\r\n> I constantly get: {\"message\": \"Internal server error”}\r\n> In the CloudWatch logs i see:\r\n> \r\n> string indices must be integers: TypeError\r\n> Traceback (most recent call last):\r\n>   File \"/var/task/handler.py\", line 24, in get_post\r\n>     url = API_HOST + '/posts/' + event['path']['id']\r\n> TypeError: string indices must be integers\r\n> \r\n> I investigated the issue, and i noticed that when calling the API with curl, the event object changes.\r\n> I analysed the json returned by jsonplaceholder.typicode.com, and I can confirm there is no event[‘path’][‘id’]; instead one should use event[‘pathParameters’][‘id’]\r\n> But even after changing that, I couldn’t make the curl command return the intended json\r\n> \r\n> Thanks for your attention,\r\n> Andrea Catalucci\r\n","author":{"url":"https://github.com/bennybauer","@type":"Person","name":"bennybauer"},"datePublished":"2017-05-07T05:50:22Z","url":"https://github.com/bennybauer/serverless-python-sample/issues/2"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9c4170dc-e697-d39d-df37-0e3d0b5ecea1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id95F4:26E336:2CE49DE:3EA14A8:6B072296
html-safe-nonceee12272758e170d3cf18f1fd73f8d17014599253021146f4c71add5bc0eb009e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUY0OjI2RTMzNjoyQ0U0OURFOjNFQTE0QTg6NkIwNzIyOTYiLCJ2aXNpdG9yX2lkIjoiNDE3NDg5ODY3ODEyNzMzODEzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca7623311b609cfa70173f1277f2f8245e668e9b20c7ccd0ca8266b4aa009fc66
hovercard-subject-tagissue:226831066
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/bennybauer/serverless-python-sample/2/issue_layout
twitter:imagehttps://opengraph.githubassets.com/149951afffd99cd8d104cda6f8701ec1ee53bd2f5b5658792150749633dda8d4/bennybauer/serverless-python-sample/issues/2
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/149951afffd99cd8d104cda6f8701ec1ee53bd2f5b5658792150749633dda8d4/bennybauer/serverless-python-sample/issues/2
og:image:altRecieved from Andrea Catalucci: I’m using your serverless-python-sample git repo as a starting point for a python project, and after successfully deploying the service I am not able to call the fun...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebennybauer
hostnamegithub.com
expected-hostnamegithub.com
None5a20fe9aa5e45c6df9328a5ec3f167a7805856126d8bf72d810541ca01962ef9
turbo-cache-controlno-preview
go-importgithub.com/bennybauer/serverless-python-sample git https://github.com/bennybauer/serverless-python-sample.git
octolytics-dimension-user_id3007059
octolytics-dimension-user_loginbennybauer
octolytics-dimension-repository_id68848649
octolytics-dimension-repository_nwobennybauer/serverless-python-sample
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id68848649
octolytics-dimension-repository_network_root_nwobennybauer/serverless-python-sample
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
release6ce961d9a663a99bc4bcab9fd6ac5cca54bd6fcc
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/bennybauer/serverless-python-sample/issues/2#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbennybauer%2Fserverless-python-sample%2Fissues%2F2
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbennybauer%2Fserverless-python-sample%2Fissues%2F2
Sign uphttps://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=bennybauer%2Fserverless-python-sample
Reloadhttps://github.com/bennybauer/serverless-python-sample/issues/2
Reloadhttps://github.com/bennybauer/serverless-python-sample/issues/2
Reloadhttps://github.com/bennybauer/serverless-python-sample/issues/2
bennybauerhttps://github.com/bennybauer
serverless-python-samplehttps://github.com/bennybauer/serverless-python-sample
Codehttps://github.com/bennybauer/serverless-python-sample
Issues1 (1)https://github.com/bennybauer/serverless-python-sample/issues
Pull requestshttps://github.com/bennybauer/serverless-python-sample/pulls
Actionshttps://github.com/bennybauer/serverless-python-sample/actions
Projectshttps://github.com/bennybauer/serverless-python-sample/projects
Security and qualityhttps://github.com/bennybauer/serverless-python-sample/security
Insightshttps://github.com/bennybauer/serverless-python-sample/pulse
https://github.com/bennybauer/serverless-python-sample
New issuehttps://github.com/login?return_to=https://github.com/bennybauer/serverless-python-sample/issues/2
New issuehttps://github.com/login?return_to=https://github.com/bennybauer/serverless-python-sample/issues/2
TypeError: string indices must be integershttps://github.com/bennybauer/serverless-python-sample/issues/2#top
https://github.com/bennybauer
bughttps://github.com/bennybauer/serverless-python-sample/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/bennybauer
bennybauerhttps://github.com/bennybauer
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#issue-226831066
bennybauerhttps://github.com/bennybauer
bughttps://github.com/bennybauer/serverless-python-sample/issues?q=state%3Aopen%20label%3A%22bug%22
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#event-1071776858
bennybauerhttps://github.com/bennybauer
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#event-1071776859
https://github.com/bennybauer
bennybauerhttps://github.com/bennybauer
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#issuecomment-299684165
bennybauerhttps://github.com/bennybauer
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#event-1071787201
fix issue #2 - support lambda-proxy changeshttps://github.com/bennybauer/serverless-python-sample/commit/3b234968666dd3151104d7d5624f2e332ebd75e0
#2https://github.com/bennybauer/serverless-python-sample/issues/2
3b23496https://github.com/bennybauer/serverless-python-sample/commit/3b234968666dd3151104d7d5624f2e332ebd75e0
Merge pull request #3 from bennybauer/issue2-proxy_lambdahttps://github.com/bennybauer/serverless-python-sample/commit/bcebdec7ec197f54964cab59daec62247ba7c122
#3https://github.com/bennybauer/serverless-python-sample/pull/3
bcebdechttps://github.com/bennybauer/serverless-python-sample/commit/bcebdec7ec197f54964cab59daec62247ba7c122
https://github.com/bennybauer
bennybauerhttps://github.com/bennybauer
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#issuecomment-299686491
#3https://github.com/bennybauer/serverless-python-sample/pull/3
bennybauerhttps://github.com/bennybauer
completedhttps://github.com/bennybauer/serverless-python-sample/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 7, 2017https://github.com/bennybauer/serverless-python-sample/issues/2#event-1071787689
Sign up for freehttps://github.com/signup?return_to=https://github.com/bennybauer/serverless-python-sample/issues/2
Sign in to commenthttps://github.com/login?return_to=https://github.com/bennybauer/serverless-python-sample/issues/2
bennybauerhttps://github.com/bennybauer
bughttps://github.com/bennybauer/serverless-python-sample/issues?q=state%3Aopen%20label%3A%22bug%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.