[Bug]? Excessive logging during build: 'Failed to find any user-provided fetch implementation' message in Pinecone SDK 3.0.1 #254
Labels
bug
Something isn't working
status:needs-triage
An issue that needs to be triaged by the Pinecone team
Is this a new bug?
Describe the bug
After updating the Pinecone SDK from version v2.2.2 to 3.0.1, the build process is logging the message "Failed to find any user-provided fetch implementation. Using global fetch implementation." This message was not present in the previous version and is being logged during the Next.js build process. I do NOT use any edge runtime. The issue occurs both during local builds and in the Vercel logging when deployed to the website.
Error information
This is not an error per se, but a console log message that appears during the build process:
"Failed to find any user-provided fetch implementation. Using global fetch implementation."
The message is coming from the file:
/node_modules/@pinecone-database/pinecone/dist/utils/fetch.js
Steps to reproduce the issue locally
npm run build
ornext build
in a Next.js project that uses PineconeEnvironment
Additional context
This message appears to be a new console.log statement added in the Pinecone SDK version 3.0.1. While it's not causing any apparent functionality issues, it's creating noise in the build output and could potentially be confusing for developers.
The message is logged when the SDK falls back to using the global fetch implementation. This behavior might be intentional, but the logging of this message during every build could be considered excessive.
The issue is not limited to local development environments but also occurs in production deployments on Vercel, potentially cluttering logs and making it harder to identify actual issues or errors.
The text was updated successfully, but these errors were encountered: