boyney123 / boyney123/mockit

All Functions not working when hosted on a server

Open
#89 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
78
PR merge metrics
No merged PRs in 30d

Description

## What you did:
Hi, i am hosting this on a CentOS server, this allows me and a friend to use it. I can access it but i am unable to save any changes on the console.
## What happened:

When i try to save the changes to the path, i see it tries to save too localhost.
-> PUT http://localhost:4000/route where it should be saving to our server which in this case is something else.
## Problem description:
I can access it, but looks like configurations are pointing to local host instead of the host where it is deployed on.

## Suggested solution:
Could you please commit an update that has a fix for this ? thanks so much!

Contributor guide

Open the contributing guide

Research direction

Start by tracing the PUT http://localhost:4000/route request and checking how the deployed host is configured. Confirm whether the client uses a hard-coded localhost endpoint or an unset deployment value. Done means saving changes sends the request to the server host rather than localhost and succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.