Error importing app from backup on wit.ai

心已入冬 提交于 2019-12-06 09:45:16

I kept receiving same error. In my case it had nothing to do with the content and/or formatting and/or encoding of any of *.json files.

Solution that works for me now is:

1) Export zip from any Wit.ai application (Even completely empty)

2) Copy all *.json files that are meant to be uploaded directly to this zip - overwrite or append files as needed

3) Import your app from a backup using this modified zip file

If you tamper with the original archive, do not add directory entries to the backup.

zip --no-dir-entries project.zip -r project

adding: project/actions.json (stored 0%)
adding: project/app.json (stored 0%)
adding: project/entities/intent.json (stored 0%)
adding: project/stories.json (stored 0%)

will work.

Adding the directory entry for entities

adding: project/entities/ (stored 0%)

seems to break the importer.

I had the exact problems. So if anyone else stumble upon this. Check that your bot is valid and has no empty bookmarks (first issue), recursive errors (had this as well) or similar.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!