# Error requesting model from app engine url - it's not a zip file?

**URL:** <https://forum.rasa.com/t/error-requesting-model-from-app-engine-url-its-not-a-zip-file/23945>\
**Category:** Getting Started with Rasa\
**Created:** [January 25, 2020, 7:54am UTC](https://forum.rasa.com/t/error-requesting-model-from-app-engine-url-its-not-a-zip-file/23945 "2020-01-25T07:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jmg007](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jmg007](https://forum.rasa.com/u/Jmg007)\
**Post date:** [January 25, 2020, 7:54am UTC](https://forum.rasa.com/t/error-requesting-model-from-app-engine-url-its-not-a-zip-file/23945/1 "2020-01-25T07:54:35Z")

</div>

Hi.

I’'m deploying my chatbot to google cloud platform and the docker image builds but when the model is requested from the server it’s failing.

rasa.core.agent - Requesting model from server [http://xxxxxxxxx.appspot.com/?hl=en-GB/models/default\_core@latest](http://xxxxxxxxx.appspot.com/?hl=en-GB/models/default_core@latest)

There are a couple of errors:

File “/usr/local/lib/python3.6/tarfile.py”, line 1576, in open raise ReadError(“file could not be opened successfully”) tarfile.ReadError: file could not be opened successfully

File “/usr/local/lib/python3.6/zipfile.py”, line 1198, in \_RealGetContents raise BadZipFile(“File is not a zip file”) zipfile.BadZipFile: File is not a zip file

In my endpoints.yml i set the endpoints for the model as:

models: url: “[http://xxxxxxxxx.appspot.com/?hl=en-GB/models/default\_core@latest](http://xxxxxxxxx.appspot.com/?hl=en-GB/models/default_core@latest)”

And in the Dockerfile the command that runs rasa is:

ENTRYPOINT [“rasa”, “run”, “-m”, “./models”, “-vv”, “–enable-api”, “–endpoints”, “endpoints.yml”, “–credentials”, “credentials.yml”, “-p”, “8080”]

Any advice would be great.

Thanks.

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [January 27, 2020, 8:05am UTC](https://forum.rasa.com/t/error-requesting-model-from-app-engine-url-its-not-a-zip-file/23945/2 "2020-01-27T08:05:44Z")

</div>

hi @Jmg007 - how have you set up the server that is providing the models? does it require any kind of authentication?

---

<div class="post-metadata">

**Author:** ![Jmg007](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jmg007](https://forum.rasa.com/u/Jmg007)\
**Post date:** [January 28, 2020, 4:06am UTC](https://forum.rasa.com/t/error-requesting-model-from-app-engine-url-its-not-a-zip-file/23945/3 "2020-01-28T04:06:02Z")

</div>

hi @amn41, [build.txt](https://forum.rasa.com/uploads/short-url/hvdVPlGyHSIuPY5oMkDbNNBDzpu.txt) (32.4 KB) i’ve attached the build logs when I run gcloud app deploy from the cloud shell sdk.

The error msg about 3/4 of the way down are:

```
2020-01-27 19:54:37 INFO root - Starting Rasa server on http://localhost:8080
2020-01-27 19:54:37 DEBUG rasa.core.utils - Using the default number of Sanic workers (1).
2020-01-27 19:54:37 INFO root - Enabling coroutine debugging. Loop id 94796527495608.
2020-01-27 19:54:37 DEBUG rasa.model - Extracted model to '/tmp/tmpq4hewp3_'.
2020-01-27 19:54:41.930821: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
2020-01-27 19:54:42 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore.
2020-01-27 19:54:42 DEBUG rasa.core.lock_store - Connected to lock store 'InMemoryLockStore'.
2020-01-27 19:54:42 DEBUG rasa.core.nlg.generator - Instantiated NLG to 'TemplatedNaturalLanguageGenerator'.
2020-01-27 19:54:42 DEBUG rasa.core.agent - Requesting model from server http://xxxxxxxxxxx.appspot.com/?hl=en-GB/models/20200123-205743.tar.gz...
2020-01-27 19:54:42 ERROR rasa.core.agent - Could not load model due to File is not a zip file.
[2020-01-27 19:54:42 +0000] [1] [ERROR] Experienced exception while trying to serve

```

You might be right re: authentication as it is required with some google platforms APIs ([Authentication at Google &nbsp;|&nbsp; Google Cloud](https://cloud.google.com/docs/authentication/production)) you need to set an environment variable eg. set GOOGLE\_APPLICATION\_CREDENTIALS=[PATH] so I will try that.

And I’ll try building the docker image locally and seeing if it works.

Thanks
