Skip to content

[BUG] Dynamic redirect URI generation causes mismatch in GoogleCalendarToolkit #3343

@Tanuj-Taneja1

Description

@Tanuj-Taneja1

Required prerequisites

What version of camel are you using?

0.2.79a0

System information

3.10.18 (main, Sep 18 2025, 19:42:01) [MSC v.1944 64 bit (AMD64)] win32
0.2.79a0

Problem description

Hi @Wendong-Fan
So I was trying to use GoogleCalendarToolkit and was getting redirect URI mismatch error during authentication, ideally the user in this case I should match the redirect uri in the app registery in google console that camel ai uses but the redirect uri generated by GoogleCalendarToolkit is not fixed and dynamically generated.

I have looked at the GoogleCalendarToolkit code and based on that this should be really easy fix we just have to set number to the port instead of 0 and it should solve the issue.
Once you approve if the issue is legit I will create a pr for it

For reference
Image
Image

Also on side note can we add a basic whom to tag discription in issue template
Like for issue in toolkit tag xyz and so on
I think this will make it easier for new contributors as well as maintainers

Reproducible example code

The Python snippets:

from camel.toolkits import GoogleCalendarToolkit
import dotenv
dotenv.load_dotenv()
calendar_toolkit = GoogleCalendarToolkit()
calendar_tool = calendar_toolkit.get_tools()
  1. Go to Google Cloud Console and from APIs & Services create Calender api .
    2 From the created calender api get client id and client secret credential and add them to env
  2. Then run the above code

Traceback

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

ToolbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions