-
Notifications
You must be signed in to change notification settings - Fork 386
Description
I am using google-adk==1.0.0 , and trying to VertexAiRagMemoryService for my agent, but got the follwing error :
app-1 | | Traceback (most recent call last): app-1 | | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 264, in wrap app-1 | | await func() app-1 | | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 245, in stream_response app-1 | | async for chunk in self.body_iterator: app-1 | | File "/app/api/chat/router.py", line 54, in agent_streamer app-1 | | await memory_service.add_session_to_memory(db_session) app-1 | | File "/usr/local/lib/python3.11/site-packages/google/adk/memory/vertex_ai_rag_memory_service.py", line 97, in add_session_to_memory app-1 | | rag.upload_file( app-1 | | File "/usr/local/lib/python3.11/site-packages/vertexai/preview/rag/rag_data.py", line 467, in upload_file app-1 | | raise RuntimeError("Failed in uploading the RagFile due to: ", e) from e app-1 | | RuntimeError: ('Failed in uploading the RagFile due to: ', RefreshError('invalid_scope: Invalid OAuth scope or ID token audience provided.', {'error': 'invalid_scope', 'error_description': 'Invalid OAuth scope or ID token audience provided.'}))
after long search i found that we need to pass the scope to auth object, fix is in first comment.
Thanks!