web-arena-x / webarena

Code repo for "WebArena: A Realistic Web Environment for Building Autonomous Agents"
https://webarena.dev
Apache License 2.0
676 stars 103 forks source link

Some links point to an external site #18

Closed kohjingyu closed 1 year ago

kohjingyu commented 1 year ago

Hi,

I've set up the shopping environment locally according to the instructions here. I've set my shopping url to http://localhost:7770.

Most of it seems to work, but some of the links point to an external site, rather than localhost. For example:

Screen Shot 2023-08-23 at 11 08 27 AM

The links that seem to be affected are:

Perhaps I missed a variable to be set, or it's something related to login?

Thanks!

shuyanzhou commented 1 year ago

Thanks for reporting this. We looked into it a bit, but still couldn't locate the exact problem, it might come from the cache. Can you run the following commands to fully flush the cache and see if it works

docker exec shopping /var/www/magento2/bin/magento indexer:reset
docker exec shopping /var/www/magento2/bin/magento indexer:reindex
docker exec shopping /var/www/magento2/bin/magento cache:clean
kohjingyu commented 1 year ago

Thanks! I've tried this, and also deleted and re-run the image with the instructions here, but unfortunately the error still persists.

nicholaschenai commented 1 year ago

Thanks for reporting this. We looked into it a bit, but still couldn't locate the exact problem, it might come from the cache. Can you run the following commands to fully flush the cache and see if it works

docker exec shopping /var/www/magento2/bin/magento indexer:reset
docker exec shopping /var/www/magento2/bin/magento indexer:reindex
docker exec shopping /var/www/magento2/bin/magento cache:clean

I managed to replicate this problem to a larger degree: after entering localhost:7770, I got redirected to the metis version.

Following the instructions to clear cache doesnt work

shuyanzhou commented 1 year ago

@frankxu2004 let's try to reproduce it in our server

shuyanzhou commented 1 year ago

Thanks @kohjingyu @nicholaschenai for reporting the problem. We were able to locate the problem finally. Please re-open if the fix doesn't work

kohjingyu commented 1 year ago

Nevermind, it works!