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

按照操作步骤出现异常 #41

Open
amosnothing opened this issue Sep 9, 2020 · 1 comment
Open

按照操作步骤出现异常 #41

amosnothing opened this issue Sep 9, 2020 · 1 comment

Comments

@amosnothing
Copy link

删除json文件之后提示文件不存在

PS F:\china_regions-3.3> node main.js
2020-09-09T11:07:58+0800 main.js:51 (newRequestPromise) request == > http://219.235.129.117:80/tjsj/tjbz/tjyqhdmhcxhfdm/2018/
undefined:1

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at pullVillageDataSync (F:\china_regions-3.3\main.js:391:25)
at Object. (F:\china_regions-3.3\main.js:422:1)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
PS F:\china_regions-3.3> node main.js
2020-09-09T11:08:42+0800 main.js:51 (newRequestPromise) request == > http://219.235.129.117:80/tjsj/tjbz/tjyqhdmhcxhfdm/2018/

然后我在文件夹里加上了town.json

F:\china_regions-3.3\main.js:393
jsonData.slice(offset).forEach(function(element, index) {
^

TypeError: jsonData.slice is not a function
at pullVillageDataSync (F:\china_regions-3.3\main.js:393:14)
at Object. (F:\china_regions-3.3\main.js:422:1)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
PS F:\china_regions-3.3>

@zhyq0826
Copy link
Member

用网站的域名试试,IP 会变化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants