๐ง eBay Domain Migration Guide
๐จ Current Issue
Problem: eBay is still redirecting to the old domain ebaylister.ddns.net instead of your new domain optimusuk.co.uk.
This happens because your eBay application in the eBay Developer Portal is still configured with the old redirect URI.
๐ What We've Fixed
- โ
Updated authorization scripts to use correct RuName format
- โ
Created redirect handlers to forward authorization codes to new domain
- โ
Fixed the "invalid_request" error with proper redirect URI format
๐ ๏ธ Solutions (Choose One)
Option 1: Update eBay Developer Portal (Recommended)
2Find your application "Leebarth-listings-PRD-a07736cc6-8e372b00"
3Update the redirect URI from https://ebaylister.ddns.net/ebay/auth.php to https://optimusuk.co.uk/html/ebay/auth_user.php
4Save the changes
5Test the authorization flow again
Option 2: Use Temporary Redirect Handler
1Keep the old redirect URI in eBay Developer Portal for now
2The updated auth.php will automatically redirect to the new domain
3This works as a temporary solution while you update the eBay configuration
๐งช Test the Authorization Flow
๐ Current Configuration
- Client ID: Leebarth-listings-PRD-a07736cc6-8e372b00
- RuName: Lee_bartholomew-Leebarth-listin-lbnljg
- Old Redirect URI: https://ebaylister.ddns.net/ebay/auth.php
- New Redirect URI: https://optimusuk.co.uk/html/ebay/auth_user.php
- Authorization URL: https://auth.ebay.com/oauth2/authorize
โ ๏ธ Important Notes
- The authorization code from eBay is valid for only a few minutes
- Make sure you complete the authorization flow quickly
- If you get errors, check the browser console and server logs
- The redirect handler will preserve the authorization code during the redirect
โ
Expected Flow
- Click "Start Authorization" above
- You'll be redirected to eBay's authorization page
- Log in to your eBay account and grant permissions
- eBay will redirect back (either to old or new domain)
- The redirect handler will forward you to the new domain
- The authorization code will be exchanged for tokens
- User token will be saved to the database
- Your cron jobs should start working properly
๐ Debug Information
Current Authorization URL:
https://auth.ebay.com/oauth2/authorize?client_id=Leebarth-listings-PRD-a07736cc6-8e372b00&redirect_uri=Lee_bartholomew-Leebarth-listin-lbnljg&response_type=code&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope+https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory+https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.account+https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment+https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment.readonly&prompt=login
๐ Need Help?
If you continue to have issues:
- Check the server logs at
/var/www/html/crons/check_ebay_prices.log - Verify your eBay application settings in the Developer Portal
- Make sure your domain has valid SSL certificates
- Test the authorization URL manually in your browser