Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load API definition. NetworkError when attempting to fetch resource. #7892

Open
bugger11 opened this issue Jan 7, 2019 · 5 comments
Labels
3 Swagger Swagger integration, upstream swagger reference 3 UI ArangoDB Web Interface (frontend/Aardvark)

Comments

@bugger11
Copy link

bugger11 commented Jan 7, 2019

All services give the error:
Failed to load API definition.
NetworkError when attempting to fetch resource. http://192.168.1.1:8529/_db/_system/_admin/aardvark/foxxes/docs/swagger.json?mount=/aye-aye

I start ArangoDB like this: # /usr/bin/arangod --server.endpoint "http+tcp://192.168.1.1:8529"

INFO ArangoDB 3.4.0 [linux] 64bit, using jemalloc, build , VPack 0.1.33, RocksDB 5.16.0, ICU 58.1, V8 5.7.492.77, OpenSSL 1.1.1a 20 Nov 2018

INFO detected operating system: Linux version 4.19.12-arch1-1-ARCH (builduser@heftig-21538) (gcc version 8.2.1 20181127 (GCC)) #1 SMP PREEMPT Fri Dec 21 13:56:54 UTC 2018

Mode: Single-Server
Storage-Engine: mmfiles
Total RAM in your machine: 8 GB

free -m
              total        used        free      shared  buff/cache   available
Mem:           7902         513        4641           1        2746        7120
Swap:          8073           0        8073

Used Package: AUR (en) - arangodb https://aur.archlinux.org/packages/arangodb/

I'm using Firefox to access the Web UI.

These are the steps to reproduce:

open the browser on http://192.168.11:8529
log in as root
use database _system (or any other db)
click 'Services', on any service, navigate to API tab, then you would the error shown above

At first I thought my issue was the same as an existing issue, but now I believe they are different. See older issue here: Failed to load API definition · Issue #4453 · arangodb/arangodb #4453

@OmarAyo OmarAyo added 3 UI ArangoDB Web Interface (frontend/Aardvark) 1 Analyzing labels Jan 7, 2019
@maxkernbach
Copy link
Contributor

Hi @bugger11,

we were not able to reproduce this issue, are you still facing this problem?

In order to reproduce, we executed the following steps:

  1. Install the given AUR package (ArangoDB 3.4.0) on Arch Linux
  2. Access UI with Firefox
  3. Install a service (e.g. aye-aye) via "Add Service" in the Services Menu
  4. Access API tab of a service (e.g. aye-aye)

-> The API is correctly displayed, no error occured

@maxkernbach
Copy link
Contributor

@bugger11

In addition to installation packages (distribution dependent) a tar.gz archive is available starting from version 3.4.0.
Since we were not able to reproduce your issue, could you please check if this problem persists when using the latest linux tar.gz archive (section Tar package) to start a server?

Basic usage instructions can be found in the README after extracting the archive.

@bugger11
Copy link
Author

bugger11 commented Feb 7, 2019 via email

@dothebart
Copy link
Contributor

do you by any chance also use an SSL-Endpoint? for some reason swagger fails to properly create the URL to the API-definitions in some cases. It can be found by carefully looking into the network tab of the Browser-tools (f12)

@dothebart dothebart added the 3 Swagger Swagger integration, upstream swagger reference label Feb 7, 2019
@bugger11
Copy link
Author

bugger11 commented Feb 7, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 Swagger Swagger integration, upstream swagger reference 3 UI ArangoDB Web Interface (frontend/Aardvark)
Projects
None yet
Development

No branches or pull requests

4 participants