René's URL Explorer Experiment


Title: Online requests with zero entity rows return HTTP 500 instead of an empty result or a 400 · Issue #6819 · feast-dev/feast · GitHub

Open Graph Title: Online requests with zero entity rows return HTTP 500 instead of an empty result or a 400 · Issue #6819 · feast-dev/feast

X Title: Online requests with zero entity rows return HTTP 500 instead of an empty result or a 400 · Issue #6819 · feast-dev/feast

Description: Expected Behavior An online request carrying zero entity rows should be answered, not crash. A caller whose upstream query matched nothing this run sends an empty batch, and a request that genuinely omits a required join key should come ...

Open Graph Description: Expected Behavior An online request carrying zero entity rows should be answered, not crash. A caller whose upstream query matched nothing this run sends an empty batch, and a request that genuinel...

X Description: Expected Behavior An online request carrying zero entity rows should be answered, not crash. A caller whose upstream query matched nothing this run sends an empty batch, and a request that genuinel...

Opengraph URL: https://github.com/feast-dev/feast/issues/6819

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Online requests with zero entity rows return HTTP 500 instead of an empty result or a 400","articleBody":"## Expected Behavior\n\nAn online request carrying zero entity rows should be answered, not crash. A caller\nwhose upstream query matched nothing this run sends an empty batch, and a request that\ngenuinely omits a required join key should come back as a client error (4xx) naming the\nkey.\n\n## Current Behavior\n\nThree related empty-input shapes surface internal exceptions, and the feature server\nturns each into an HTTP 500 with an opaque message:\n\n| Request | Result |\n|---|---|\n| `store.get_online_features(features=[...], entity_rows=[])` | `IndexError: list index out of range` |\n| `POST /get-online-features` with `{\"entities\": {\"driver_id\": []}}` | HTTP 500 — `\"Missing join key values for keys: []. No values provided for keys: ['driver_id']. Provided join_key_values: ['driver_id']\"` |\n| `POST /get-online-features` with `{\"entities\": {}}` | HTTP 500 — `\"'pop from an empty set'\"` |\n\nThe middle one is the worst of the three: the join key *was* supplied, it just has no\nvalues, so this is a well-formed request that should return an empty result.\n\nThe same request shape with a single entity row returns 200.\n\n## Steps to reproduce\n\nAgainst a local `file` + `sqlite` repo:\n\n```python\nfs.get_online_features(features=[\"driver_stats:conv_rate\"], entity_rows=[]).to_dict()\n# IndexError: list index out of range\n```\n\nAnd through the server:\n\n```python\nclient = TestClient(get_app(fs), raise_server_exceptions=False)\n\nclient.post(\"/get-online-features\", json={\n    \"features\": [\"driver_stats:conv_rate\"],\n    \"entities\": {\"driver_id\": []},\n})\n# 500 \"Missing join key values for keys: []. No values provided for keys: ['driver_id']...\"\n\nclient.post(\"/get-online-features\", json={\n    \"features\": [\"driver_stats:conv_rate\"],\n    \"entities\": {},\n})\n# 500 \"'pop from an empty set'\"\n```\n\n### Specifications\n\n- Version: `master` @ `5ad5592390febfca60c9d88edf7daccbdd156fd6`\n- Platform: Linux x86_64, Python 3.11.15\n- Subsystem: online serving / feature server\n\n## Possible Solution\n\nThree distinct causes:\n\n* `sdk/python/feast/infra/online_stores/online_store.py:169` and `:453` (the sync and\n  async paths) both build the columnar dict with `{k: [] for k in entity_rows[0].keys()}`,\n  with no guard for an empty list.\n* `sdk/python/feast/utils.py:554` `_validate_entity_values` ends with\n  `set_of_row_lengths.pop()`. For an empty mapping the set is empty and `.pop()` raises\n  `KeyError: 'pop from an empty set'`.\n* `sdk/python/feast/utils.py` `_get_unique_entities` treats \"join key present but holding\n  zero values\" the same as \"join key never supplied\". The row-wise conversion immediately\n  below it already handles zero rows (`if not rowise: return (), (), 0`), so the guard is\n  rejecting a case the code beneath it supports.\n\nA reasonable contract, and the one I've implemented in the linked PR:\n\n* join keys supplied but empty → empty response with the correct feature-name metadata,\n  consistent with `get_historical_features` returning an empty frame for a zero-row\n  `entity_df`;\n* nothing supplied at all → a typed client error carrying HTTP 400 rather than a 500.\n\nI went with an empty response rather than a 400 for the empty-but-present case because\nit keeps batch-scoring callers from having to special-case \"my filter matched nothing\".\nHappy to switch it to a 400 if maintainers prefer the stricter reading — it is a one-line\nchange either way.\n","author":{"url":"https://github.com/Daksha1611","@type":"Person","name":"Daksha1611"},"datePublished":"2026-09-07T06:11:55Z","url":"https://github.com/feast-dev/feast/issues/6819"}

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:68f73f7c-6904-a897-0fe0-1b4f442f7131
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDD24:184DF1:E2222F:1352AFE:6AFE9528
html-safe-noncede07de817bf065fb02b8c912c33002cbddd4aaee8b7ca48488a6945785dbfbdc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDI0OjE4NERGMTpFMjIyMkY6MTM1MkFGRTo2QUZFOTUyOCIsInZpc2l0b3JfaWQiOiI1MjkwMjA2MzMyMzI5MDM5MTQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4524e7218537e7f6e33e7affe09cf3b906f64068183c838d6edfdde251d1d95d
hovercard-subject-tagissue:5370751683
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/feast-dev/feast/6819/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c63aa1e43d55d1b4d278ed50c9f545e367db5d5e2c5f2515a542d30189395b7a/feast-dev/feast/issues/6819
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c63aa1e43d55d1b4d278ed50c9f545e367db5d5e2c5f2515a542d30189395b7a/feast-dev/feast/issues/6819
og:image:altExpected Behavior An online request carrying zero entity rows should be answered, not crash. A caller whose upstream query matched nothing this run sends an empty batch, and a request that genuinel...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDaksha1611
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
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
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/6819#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6819
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%2Ffeast-dev%2Ffeast%2Fissues%2F6819
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=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/6819
Reloadhttps://github.com/feast-dev/feast/issues/6819
Reloadhttps://github.com/feast-dev/feast/issues/6819
feast-devhttps://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Codehttps://github.com/feast-dev/feast
Issues223 (223)https://github.com/feast-dev/feast/issues
Pull requests143 (143)https://github.com/feast-dev/feast/pulls
Discussionshttps://github.com/feast-dev/feast/discussions
Actionshttps://github.com/feast-dev/feast/actions
Security and quality1 (1)https://github.com/feast-dev/feast/security
Insightshttps://github.com/feast-dev/feast/insights
https://github.com/feast-dev/feast
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6819
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6819
#6820https://github.com/feast-dev/feast/pull/6820
Online requests with zero entity rows return HTTP 500 instead of an empty result or a 400https://github.com/feast-dev/feast/issues/6819#top
#6820https://github.com/feast-dev/feast/pull/6820
https://github.com/Daksha1611
Daksha1611https://github.com/Daksha1611
on Sep 7, 2026https://github.com/feast-dev/feast/issues/6819#issue-5370751683
Sign up for freehttps://github.com/signup?return_to=https://github.com/feast-dev/feast/issues/6819
Sign in to commenthttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6819
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.