Skip to content

Commit 7959475

Browse files
committed
fix(tests): correct MailSlurp API URL to fix email OTP retrieval
- Override default host from python.api.mailslurp.com to api.mailslurp.com - Fixes bug in MailSlurp Python client v15.19.22 with incorrect default URL - Authentication flow was working perfectly, issue was wrong API endpoint - OTP email retrieval now works successfully This was the root cause of CI authentication timeouts - the Python client was hitting a non-existent subdomain instead of the official API.
1 parent 09f2cdf commit 7959475

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sample/Tests/src/fetch_otp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
def get_mailslurp_client():
1010
configuration = mailslurp_client.Configuration()
1111
configuration.api_key['x-api-key'] = os.getenv('MAILSLURP_API_KEY')
12+
# Use the correct API base URL as per official docs
13+
configuration.host = "https://api.mailslurp.com"
1214
api_client = mailslurp_client.ApiClient(configuration)
1315
waitfor_controller = WaitForControllerApi(api_client)
1416
return waitfor_controller

0 commit comments

Comments
 (0)