Azure / azure-cosmos-db-emulator-docker

This repo serves as hub for managing issues, gathering feedback, and having discussions regarding the Cosmos DB Emulator Docker.
https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-develop-emulator?tabs=docker-linux%2Ccsharp&pivots=api-nosql
MIT License
150 stars 45 forks source link

CosmosDB Explorer Issues #7

Closed grahamehorner closed 1 week ago

grahamehorner commented 7 years ago

CosmosDB explorer is no longer showing collections, users, stored procedures etc. the browser shows a single 404 error for https://...:8081/_explorer/externals/bootstrap.min.css.map

ransagy commented 6 years ago

I have a similar issue where on startup there are two errors in the browser console on http://localhost:8081/dbs ERR_CONNECTION_REFUSED and no data is shown in the explorer, nor any actions are shown (create database, collection etc).

I'm assuming its an issue with the explorer version looking at localhost, rather than the URL that the docker instance is running from (which is in the URL im looking at for the Data Explorer, i.e. http://172.xx.xx.xx/_explorer/index.html)

taishmanov commented 6 years ago

https://:/_explorer/built/Common/DocumentClientFactory.js file has a bug. Line 8: endpoint = endpoint || "https://localhost:" + location.port; I changed it to endpoint = endpoint || "https://" + window.location.host;.

Just change this line in browser dev tools or find DocumentClientFactory.js file in your machine and fix it manually. The file's location was for me: "C:\ProgramData\Docker\windowsfilter\3cb46544dcb17d4b41c1334e3dbd06b8315fa07f3a940bf7c654a428f2a955fd\Files\Program Files\Azure Cosmos DB Emulator\Packages\DataExplorer\built\Common"

XristophD commented 6 years ago

Thank you for the fix. Do I understand this right, that this is not an issue of the docker-container repository but an error within the initial CosmosDB Emulator? Who is maintaining the DocumentClientFactory.js file?