Comments (4)
Hi. I know it's too late to respond. I'm just writing here for those who have faced the same issue.
You should change the following environment variables in docker-compose.yml
:
REACT_APP_MOCKIT_SERVER_URL=http://localhost:3000
REACT_APP_MOCKIT_API_URL=http://localhost:4000
from mockit.
I know this post is 2 years old but I came across this exact same issue.
The advice from @dante0747 does in fact work - just replace "localhost" on these lines with your IP address if you're hosting on a lab or remote service. In my case the ip address of my docker server worked just fine (so if you access mockit on http://10.1.1.128:5000 then set these lines to:
REACT_APP_MOCKIT_SERVER_URL=http://10.1.1.128:3000
REACT_APP_MOCKIT_API_URL=http://10.1.1.128:4000
from mockit.
Hi there, I can confirm that this issue is still present if deployed via cloned docker-compose on host A and accessed from host B.
The page gets loaded but if you try to edit existing or add new route the dialog in modal window does not close and stays permanent and nothing happens afterwards. Only thing one can do is close the modal.
from mockit.
Hi. I know it's too late to respond. I'm just writing here for those who have faced the same issue.
You should change the following environment variables in
docker-compose.yml
:REACT_APP_MOCKIT_SERVER_URL=http://localhost:3000 REACT_APP_MOCKIT_API_URL=http://localhost:4000
this env vars setting is already set this way and it is not working, any hint?
from mockit.
Related Issues (20)
- See incoming request log
- Add lint for this project HOT 3
- Featuring mockit in Docusaurus HOT 5
- Use HTTP for git clone instead of SSH HOT 2
- Add random generated data from schema HOT 2
- Add mockit images to Docker registry
- Client tests do not run HOT 2
- export and import feature HOT 7
- Enabling grouped routes causes React errors HOT 2
- better install script HOT 1
- missed dependency HOT 3
- Add .editorconfig file for project HOT 1
- Linting warnings are shown in console HOT 1
- improper headers format in mockit-routes/configuration/routes.json HOT 1
- Please Add POST request which accept request body and then post it.. HOT 1
- Save changes does not do anything HOT 5
- POST doesn't close the connection when 204 response used HOT 6
- SSL & corporate network HOT 1
- Wildcard Path doesn't affected by Delay feature HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockit.