now printing exception when retrieving agent url