Fix DANDI sandbox upload broken by dandi-cli 0.73.2#1037
Conversation
dandi-cli 0.73.2 (released Nov 15, 2025) changed API key lookup from the generic DANDI_API_KEY env var to instance-specific env vars (e.g. DANDI_SANDBOX_API_KEY for the sandbox). This broke sandbox uploads because nwb-guide only set DANDI_API_KEY. Now set both DANDI_API_KEY and DANDI_SANDBOX_API_KEY when uploading to the sandbox, maintaining compatibility with both old and new dandi. See: dandi/dandi-cli#1731 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
Note on CI failuresThe macOS ( Root cause: This is a pre-existing issue on This PR's actual change is a one-line fix to set |
|
Other test failures appear to stem from an incompatibility with the latest version of spikeinterface, which we should address in a separate PR. The changes here look good, so I will merge bypassing CI requirements after the UI tests pass. |
|
yes, that is an issue with pandas>=3 in spikeinterface, which I address in #1034 |
Summary
DANDI_API_KEYto instance-specific vars (e.g.DANDI_SANDBOX_API_KEYfor the sandbox). NWB GUIDE only setDANDI_API_KEY, so sandbox uploads silently failed (timeout after 5 min).DANDI_API_KEYandDANDI_SANDBOX_API_KEYwhen uploading to sandbox, maintaining backward compatibility with older dandi versionsTest plan
🤖 Generated with Claude Code