brushstroke-parameterized-style-transfer icon indicating copy to clipboard operation
brushstroke-parameterized-style-transfer copied to clipboard

PyngrokNgrokHTTPError: ngrok client exception, API returned 400

Open francisrod01 opened this issue 2 years ago • 1 comments

BrushstrokeStyleTransferDrawApp colab isn't running. (yeah, I don't have access to GPU right now).. so I thought that ColabStreamlit wasn't running because of that. 😢 https://colab.research.google.com/drive/1ALNRoZgCj35uJ3Xvs24-QDwwtCb2lm3P?usp=sharing#scrollTo=elOYlKQ9Xz9X

I'm seeing a ngrok exception, that I didn't find anything about it on the internet.

WARNING:tensorflow:From <ipython-input-3-942ec86c7f3d>:3: is_gpu_available (from tensorflow.python.framework.test_util) is deprecated and will be removed in a future version.
Instructions for updating:
Use `tf.config.list_physical_devices('GPU')` instead.
WARNING:pyngrok.process.ngrok:t=2023-08-22T11:49:50+0000 lvl=warn msg="ngrok config file found at legacy location, move to XDG location" xdg_path=/root/.config/ngrok/ngrok.yml legacy_path=/root/.ngrok2/ngrok.yml
WARNING:pyngrok.process.ngrok:t=2023-08-22T11:49:50+0000 lvl=warn msg="invalid tunnel configuration" pg=/api/tunnels id=27d2eeb90ef976b5 err="yaml: unmarshal errors:\n  line 1: field options not found in type config.HTTPv2Tunnel\n  line 1: field return_ngrok_tunnel not found in type config.HTTPv2Tunnel"
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pyngrok/ngrok.py](https://localhost:8080/#) in api_request(url, method, data, params, timeout)
    465     try:
--> 466         response = urlopen(request, data, timeout)
    467         response_data = response.read().decode("utf-8")

11 frames
HTTPError: HTTP Error 400: Bad Request

During handling of the above exception, another exception occurred:

PyngrokNgrokHTTPError                     Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pyngrok/ngrok.py](https://localhost:8080/#) in api_request(url, method, data, params, timeout)
    485         logger.debug("Response {}: {}".format(status_code, response_data.strip()))
    486 
--> 487         raise PyngrokNgrokHTTPError("ngrok client exception, API returned {}: {}".format(status_code, response_data),
    488                                     e.url,
    489                                     status_code, e.msg, e.hdrs, response_data)

PyngrokNgrokHTTPError: ngrok client exception, API returned 400: {"error_code":102,"status_code":400,"msg":"invalid tunnel configuration","details":{"err":"yaml: unmarshal errors:\n  line 1: field options not found in type config.HTTPv2Tunnel\n  line 1: field return_ngrok_tunnel not found in type config.HTTPv2Tunnel"}}

francisrod01 avatar Aug 22 '23 12:08 francisrod01

Yes, even I faced this same issue and found no solution.

baibhavnfs2001 avatar Feb 14 '25 10:02 baibhavnfs2001