Skip to content

Commit 6eae1fb

Browse files
zhubzyclaude
andcommitted
fix(gmail): correct send_draft endpoint (404 → works)
The Gmail API has no /drafts/{id}/send route — sending a draft requires POST /drafts/send with {id: draftId} in the body. Hitting the former returned a generic Google HTML 404 (not a Gmail API JSON error) because the request never reached a Gmail handler. Also bumps OSS packages to 0.1.302. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 84bf51c commit 6eae1fb

File tree

8 files changed

+17
-15
lines changed

8 files changed

+17
-15
lines changed

packages/bubble-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bubblelab/bubble-core",
3-
"version": "0.1.301",
3+
"version": "0.1.302",
44
"type": "module",
55
"license": "Apache-2.0",
66
"main": "./dist/index.js",

packages/bubble-core/src/bubbles/service-bubble/gmail.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,11 +1494,13 @@ export class GmailBubble<
14941494
): Promise<Extract<GmailResult, { operation: 'send_draft' }>> {
14951495
const { draft_id } = params;
14961496

1497-
const response = await this.makeGmailApiRequest(
1498-
`/drafts/${draft_id}/send`,
1499-
'POST',
1500-
{}
1501-
);
1497+
// Gmail API: POST /drafts/send with the draft id in the body.
1498+
// There is no /drafts/{id}/send route — hitting it returns a generic
1499+
// Google HTML 404 (not a Gmail API JSON error) because the request
1500+
// never reaches a Gmail handler.
1501+
const response = await this.makeGmailApiRequest('/drafts/send', 'POST', {
1502+
id: draft_id,
1503+
});
15021504

15031505
return {
15041506
operation: 'send_draft',

packages/bubble-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bubblelab/bubble-runtime",
3-
"version": "0.1.301",
3+
"version": "0.1.302",
44
"type": "module",
55
"license": "Apache-2.0",
66
"main": "./dist/index.js",

packages/bubble-scope-manager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bubblelab/ts-scope-manager",
3-
"version": "0.1.301",
3+
"version": "0.1.302",
44
"private": false,
55
"license": "MIT",
66
"type": "commonjs",

packages/bubble-shared-schemas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bubblelab/shared-schemas",
3-
"version": "0.1.301",
3+
"version": "0.1.302",
44
"type": "module",
55
"license": "Apache-2.0",
66
"main": "./dist/index.js",

packages/create-bubblelab-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-bubblelab-app",
3-
"version": "0.1.301",
3+
"version": "0.1.302",
44
"type": "module",
55
"license": "Apache-2.0",
66
"description": "Create BubbleLab AI agent applications with one command",

packages/create-bubblelab-app/templates/basic/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"typecheck": "tsc --noEmit"
1212
},
1313
"dependencies": {
14-
"@bubblelab/bubble-core": "^0.1.301",
15-
"@bubblelab/bubble-runtime": "^0.1.301",
16-
"@bubblelab/shared-schemas": "^0.1.301",
14+
"@bubblelab/bubble-core": "^0.1.302",
15+
"@bubblelab/bubble-runtime": "^0.1.302",
16+
"@bubblelab/shared-schemas": "^0.1.302",
1717
"dotenv": "^16.4.5"
1818
},
1919
"devDependencies": {

packages/create-bubblelab-app/templates/reddit-scraper/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"typecheck": "tsc --noEmit"
1212
},
1313
"dependencies": {
14-
"@bubblelab/bubble-core": "^0.1.301",
15-
"@bubblelab/bubble-runtime": "^0.1.301",
14+
"@bubblelab/bubble-core": "^0.1.302",
15+
"@bubblelab/bubble-runtime": "^0.1.302",
1616
"dotenv": "^16.4.5"
1717
},
1818
"devDependencies": {

0 commit comments

Comments
 (0)