Skip to content

fix: improve error handling for pyiceberg list_namespaces permission errors#7864

Merged
mscolnick merged 1 commit intomarimo-team:mainfrom
VedantMadane:fix/pyiceberg-list-namespaces-permission
Jan 16, 2026
Merged

fix: improve error handling for pyiceberg list_namespaces permission errors#7864
mscolnick merged 1 commit intomarimo-team:mainfrom
VedantMadane:fix/pyiceberg-list-namespaces-permission

Conversation

@VedantMadane
Copy link
Contributor

Summary

Fixes #7790 - Improves error handling when list_namespaces() fails due to insufficient permissions.

Changes

When list_namespaces() fails with a 403 Forbidden error (common when credentials don't allow access to the /v1/namespaces API), the code now:

  • Logs at debug level instead of warning
  • Provides a helpful message explaining that tables can still be accessed if the namespace name is known
  • Only falls back to warning with full traceback for other unexpected errors

Test Plan

  • The change is backward compatible - other errors still log warnings
  • Users with restricted permissions will no longer see noisy warnings

…errors

When list_namespaces() fails with a 403 Forbidden error due to insufficient permissions, log at debug level with a helpful message instead of warning with full traceback.

Fixes marimo-team#7790
@vercel
Copy link

vercel bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
marimo-docs Ready Ready Preview, Comment Jan 16, 2026 3:23am

Review with Vercel Agent

@github-actions
Copy link

github-actions bot commented Jan 16, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@VedantMadane
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@mscolnick mscolnick added the bug Something isn't working label Jan 16, 2026
@mscolnick mscolnick merged commit eb98a06 into marimo-team:main Jan 16, 2026
33 of 46 checks passed
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.19.5-dev4

botterYosuke pushed a commit to botterYosuke/marimo that referenced this pull request Jan 17, 2026
…errors (marimo-team#7864)

## Summary

Fixes marimo-team#7790 - Improves error handling when list_namespaces() fails due
to insufficient permissions.

## Changes

When list_namespaces() fails with a 403 Forbidden error (common when
credentials don't allow access to the /v1/namespaces API), the code now:
- Logs at **debug** level instead of warning
- Provides a helpful message explaining that tables can still be
accessed if the namespace name is known
- Only falls back to warning with full traceback for other unexpected
errors

## Test Plan

- The change is backward compatible - other errors still log warnings
- Users with restricted permissions will no longer see noisy warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better try-except for list_namespaces() call for pyiceberg

2 participants