/    Sign up×
Community /Pin to ProfileBookmark

Why is not XMLHttpRequest() working?

I have a simple API generating json from Postgresql. It works sometimes, but not always.
What am I doing wrong?

**1. Using browser**
The json appear as it should when I paste the url in the browser: http://94.237.92.101:6061/users
`[{“usr_date”:”2020-06-01T00:00:00Z”,”usr_id”:4,”usr_mail”:”[email protected]”,”usr_name”:”James”,”usr_pw”:”5678″,”usr_sign”:”JB”,”usr_status”:0,”usr_token”:null},{“usr_date”:”2021-02-28T00:00:00Z”,”usr_id”:6,”usr_mail”:”[email protected]”,”usr_name”:”Doug”,”usr_pw”:”7890″,”usr_sign”:”DB”,”usr_status”:0,”usr_token”:null},{“usr_date”:”2020-06-01T00:00:00Z”,”usr_id”:3,”usr_mail”:”[email protected]”,”usr_name”:”Sibert”,”usr_pw”:”1234″,”usr_sign”:”SB”,”usr_status”:1,”usr_token”:null}]`

**2. Using Online API tool**
https://reqbin.com/ryo8ao79
https://gowebstatic.tk/img/online_apitest

**2. But not Using jsfiddle.net**
https://jsfiddle.net/xz07s6pf/

to post a comment

1 Comments(s)

Copy linkTweet thisAlerts:
@cootheadApr 04.2021 — Hi there sibert,

[i]jsfiddle[/i] and [i]codepen[/i] only accept [b]https[/b] links.

Here is an example that indicates this...

[url=https://jsfiddle.net/04j2ep1L/1/][color=#00f][u]No http links allowed[/u][/color][/url]

[i]coothead[/i]
×

Success!

Help @sibert spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...