Looks like xhr library isn't working correctly. Breaks with any connection during retrieval of metadata.