neptune-client icon indicating copy to clipboard operation
neptune-client copied to clipboard

BUG: swagger.json cannot be found

Open claudn opened this issue 3 years ago • 4 comments

Describe the bug

Hi there,

Just trying to set up Neptune logging and am coming across an error when I run the sample code provided here. Not sure if it's because of my server setup (I am using a company VPN) but couldn't find much help documentation on the issue.

Reproduction

When I run the following snippet:

import neptune.new as neptune

run = neptune.init(
    project="claudn/embeddings-model",
    api_token="<api token>",
)  # your credentials

params = {"learning_rate": 0.001, "optimizer": "Adam"}
run["parameters"] = params

for epoch in range(10):
    run["train/loss"].log(0.9 ** epoch)

run["eval/f1_score"] = 0.66

run.stop()

I get this error:

The Neptune server returned the status 404.

The server response was:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/backend/swagger.json was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at app.neptune.ai Port 443</address>
</body></html>

Environment

The output of pip list:

Package                       Version
----------------------------- --------------
absl-py                       1.1.0
analytics-python              1.4.0
anyio                         3.6.1
argon2-cffi                   21.3.0
argon2-cffi-bindings          21.2.0
asttokens                     2.0.5
astunparse                    1.6.3
attrs                         22.1.0
Babel                         2.10.3
backcall                      0.2.0
backoff                       1.10.0
backports.functools-lru-cache 1.6.4
bellml                        7.3.0
bleach                        5.0.1
blinker                       1.4
boto3                         1.24.50
botocore                      1.27.50
bravado                       11.0.3
bravado-core                  5.17.0
brotlipy                      0.7.0
cachetools                    5.2.0
certifi                       2022.6.15
cffi                          1.15.1
chardet                       5.0.0
charset-normalizer            2.1.0
click                         8.1.3
colorama                      0.4.5
cryptography                  37.0.4
cycler                        0.11.0
db-toolkit                    1.3.0
debugpy                       1.6.0
decorator                     5.1.1
defusedxml                    0.7.1
entrypoints                   0.4
et-xmlfile                    1.1.0
executing                     0.9.1
fastjsonschema                2.16.1
flatbuffers                   1.12
fonttools                     4.34.4
future                        0.18.2
gast                          0.4.0
gitdb                         4.0.9
GitPython                     3.1.27
google-auth                   2.9.0
google-auth-oauthlib          0.4.6
google-pasta                  0.2.0
grpcio                        1.47.0
h5py                          3.7.0
idna                          3.3
importlib-metadata            4.11.4
ipykernel                     6.15.1
ipython                       8.4.0
ipython-genutils              0.2.0
ipywidgets                    7.7.1
JayDeBeApi                    1.2.3
jedi                          0.18.1
Jinja2                        3.1.2
jmespath                      1.0.1
joblib                        1.1.0
JPype1                        1.4.0
json5                         0.9.8
jsonref                       0.2
jsonschema                    3.2.0
jupyter                       1.0.0
jupyter-client                7.3.4
jupyter-console               6.4.4
jupyter-core                  4.11.1
jupyter-server                1.18.1
jupyterlab                    3.4.3
jupyterlab-server             2.15.0
jupyterlab-widgets            1.1.1
keras                         2.9.0
Keras-Preprocessing           1.1.2
kiwisolver                    1.4.4
libclang                      14.0.1
lightgbm                      3.3.2
llvmlite                      0.31.0
Markdown                      3.3.7
MarkupSafe                    2.1.1
matplotlib                    3.5.2
matplotlib-inline             0.1.3
mistune                       2.0.4
monotonic                     1.6
msgpack                       1.0.4
munkres                       1.1.4
nbclassic                     0.4.3
nbconvert                     5.6.1
nbformat                      5.4.0
neptune-client                0.16.5
nest-asyncio                  1.5.5
networkx                      2.8.5
notebook                      6.4.12
notebook-shim                 0.1.0
numba                         0.48.0
numpy                         1.23.1
oauthlib                      3.2.0
openpyxl                      3.0.10
opt-einsum                    3.3.0
packaging                     21.3
pandas                        1.4.3
pandocfilters                 1.5.0
parso                         0.8.3
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        9.2.0
pip                           22.1.2
plotly                        5.9.0
ply                           3.11
progress-bar                  8
prometheus-client             0.14.1
prompt-toolkit                3.0.30
protobuf                      3.19.4
psutil                        5.9.1
ptyprocess                    0.7.0
pure-eval                     0.2.2
pyarrow                       8.0.0
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pycparser                     2.21
pycryptodome                  3.14.1
Pygments                      2.12.0
PyJWT                         2.4.0
pyodbc                        4.0.34
pyOpenSSL                     22.0.0
pyparsing                     3.0.9
PyQt5                         5.15.7
PyQt5-sip                     12.11.0
pyrsistent                    0.18.1
PySocks                       1.7.1
python-dateutil               2.8.2
pytz                          2022.2
PyYAML                        6.0
pyzmq                         23.2.0
qtconsole                     5.3.1
QtPy                          2.2.0
requests                      2.28.1
requests-oauthlib             1.3.1
rsa                           4.8
s3transfer                    0.6.0
scikit-learn                  1.1.2
scipy                         1.9.0
Send2Trash                    1.8.0
setuptools                    64.0.1
simplejson                    3.17.6
sip                           6.6.2
six                           1.16.0
smmap                         5.0.0
sniffio                       1.2.0
stack-data                    0.3.0
swagger-spec-validator        2.7.4
tdqm                          0.0.1
tenacity                      8.0.1
tensorboard                   2.9.1
tensorboard-data-server       0.6.1
tensorboard-plugin-wit        1.8.1
tensorflow                    2.9.1
tensorflow-estimator          2.9.0
tensorflow-gpu                2.9.1
tensorflow-io-gcs-filesystem  0.26.0
teradata                      15.10.0.21
teradatasql                   17.10.0.12
termcolor                     1.1.0
terminado                     0.15.0
testpath                      0.6.0
threadpoolctl                 3.1.0
toml                          0.10.2
torch                         1.12.1.post200
torchaudio                    0.12.1
torchvision                   0.13.1
tornado                       6.2
tqdm                          4.64.0
traitlets                     5.3.0
typing-extensions             4.3.0
unicodedata2                  14.0.0
urllib3                       1.26.11
wcwidth                       0.2.5
webencodings                  0.5.1
websocket-client              1.3.3
Werkzeug                      2.1.2
widgetsnbextension            3.6.1
wrapt                         1.14.1
xgboost                       1.6.1
XlsxWriter                    3.0.2
zipp                          3.8.1

The operating system you're using: Red Hat Enterprise Linux Server release 7.9 (Maipo) The output of python --version: Python 3.8.13

claudn avatar Aug 12 '22 18:08 claudn

Hi @claudn

Prince here,

Thank you for reaching out, I'm happy to help you with this one.

From what I see, that's quite strange behavior. So I have flagged it to the devs and have them investigate this for you,

I will keep you updated and possibly ask you follow-up questions 👍

Blaizzy avatar Aug 16 '22 08:08 Blaizzy

Hey @claudn

Just heard from the devs

Would you mind opening: https://app.neptune.ai/api/backend/swagger.json in a browser, checking the output, and sharing only a screenshot or partial output?

Blaizzy avatar Aug 16 '22 09:08 Blaizzy

Hi @Blaizzy

Yep, am able to open the .json, here's a sample of the output:

image

claudn avatar Aug 16 '22 13:08 claudn

Our devs believe the problem is non-related to Neptune-client, potentially it has to do with VPN configuration. Probably you need to forward this topic to VPN administrators.

Additionally, just to double check, would you mind trying something similar to the previous request but with Python this time and share the output with me:

import json
import requests
from pprint import pprint

pprint(requests.get('https://app.neptune.ai/api/backend/swagger.json').content.decode())

In the meantime, you can explore Neptune and its functionalities using Colab.

Blaizzy avatar Aug 18 '22 15:08 Blaizzy

Closing this issue as it's stale.

Blaizzy avatar Sep 26 '22 14:09 Blaizzy