docs(package): update repository URLs to evolution-foundation - #2729
Open
kururu-abdo wants to merge 1 commit into
Open
kururu-abdo wants to merge 1 commit into
kururu-abdo wants to merge 1 commit into
Conversation
AlmogCohen
added a commit
to AlmogCohen/evolution-api
that referenced
this pull request
Sep 27, 2026
getBase64FromMediaMessage now turns the media key into a Buffer before any
download or re-upload, from every shape a message sent as JSON carries:
- a base64 string (with or without Baileys' 'data:;base64,' prefix);
- {type:'Buffer', data:[..]}, the JSON of a Node Buffer;
- the index-keyed object {"0":..,"1":..}, the JSON of a Uint8Array;
- bytes (Buffer or Uint8Array), copied as they are.
Before, only an object was converted, with Object.values, which is right for
the index-keyed shape and turns a {type:'Buffer'} one into junk; a string was
left alone. Baileys' download decodes a string key itself, but
updateMediaMessage derives the re-upload's retry key from the value as given
(getMediaRetryKey, messages-media.js:701), so the phone's answer could not be
decrypted ("Unsupported state or unable to authenticate data"), which is how
every re-upload asked for over HTTP failed live on 2026-09-27. Upstream
Baileys PR evolution-foundation#2729 (closed, unreviewed) carried the same conversion inside
getMediaRetryKey; once Baileys converts there, this is only belt and braces.
Only the media key is converted: fileSha256 and fileEncSha256 are read by
neither the download nor the re-upload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AlmogCohen
added a commit
to AlmogCohen/evolution-api
that referenced
this pull request
Sep 27, 2026
getBase64FromMediaMessage now turns the media key into a Buffer before any
download or re-upload, from every shape a message sent as JSON carries:
- a base64 string (with or without Baileys' 'data:;base64,' prefix);
- {type:'Buffer', data:[..]}, the JSON of a Node Buffer;
- the index-keyed object {"0":..,"1":..}, the JSON of a Uint8Array;
- bytes (Buffer or Uint8Array), copied as they are.
Before, only an object was converted, with Object.values, which is right for
the index-keyed shape and turns a {type:'Buffer'} one into junk; a string was
left alone. Baileys' download decodes a string key itself, but
updateMediaMessage derives the re-upload's retry key from the value as given
(getMediaRetryKey, messages-media.js:701), so the phone's answer could not be
decrypted ("Unsupported state or unable to authenticate data"), which is how
every re-upload asked for over HTTP failed live on 2026-09-27. Upstream
Baileys PR evolution-foundation#2729 (closed, unreviewed) carried the same conversion inside
getMediaRetryKey; once Baileys converts there, this is only belt and braces.
Only the media key is converted: fileSha256 and fileEncSha256 are read by
neither the download nor the re-upload.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
Updates the package metadata to point to the current
evolution-foundationGitHub organization instead of the previousEvolutionAPIorganization.Updated fields:
repository.urlbugs.urlhomepage🧪 Type of Change
🧪 Testing
package.jsonparses as valid JSONgithub.com/EvolutionAPI/evolution-apiURLs remain in package metadata✅ Checklist
📝 Additional Notes
This follows the repository organization migration already reflected in recent documentation updates.