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

Mod[code-editor] Error fetching files [TypeError, Cannot read property 'getAllFiles' of undefined] #928

Closed
MujiGMJ opened this issue Jan 31, 2020 · 4 comments

Comments

@MujiGMJ
Copy link

MujiGMJ commented Jan 31, 2020

When i connect botpress bot to facebookmessenger, i encounteres following errors. Could you please this error is botpress bug or facebook permission.

BotService Cannot mount bot "rxs_bot". Make sure it exists on the filesystem or the database.
HTTP (get) URL /
Params ({"access_token":"EAAannMDddHsBAIKrvncIc2MpYPgRz1uU1iS0WgcRfkPuRelyI8jEwuhs2t9ZCIXXDaTwrTzbYGv93EjlJ32MX8HrAD0alfpz4XoS85GeHwDueuDZBCab2A442u1EvW9zDrDftQelL7KRaJ4DKMRgQnZCGuTPS9tMNJv8DPedbLuoZCL3IVO4"})
Received "(#10) This endpoint requires the 'manage_pages' permission or the 'Page Public Content Access' featu (...)"
Request failed with status code 400
STACK TRACE
Error: Request failed with status code 400
at createError (/Users/erxes/Desktop/Job list/Bot messenger 20200121/botpress-v12_4_2-darwin-x64/modules/.cache/module__b3e473e32ddffa9fa491776ae7da9aa1695000c88f0a91a0e1c626b20a253c13/node_production_modules/axios/lib/core/createError.js:16:15)
at settle (/Users/erxes/Desktop/Job list/Bot messenger 20200121/botpress-v12_4_2-darwin-x64/modules/.cache/module__b3e473e32ddffa9fa491776ae7da9aa1695000c88f0a91a0e1c626b20a253c13/node_production_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/Users/erxes/Desktop/Job list/Bot messenger 20200121/botpress-v12_4_2-darwin-x64/modules/.cache/module__b3e473e32ddffa9fa491776ae7da9aa1695000c88f0a91a0e1c626b20a253c13/node_production_modules/axios/lib/adapters/http.js:236:11)
at IncomingMessage.emit (events.js:187:15)
at IncomingMessage.EventEmitter.emit (domain.js:442:20)
at endReadableNT (_stream_readable.js:1081:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
11:36:55.503 Server Started in 4175ms
11:36:55.504 Launcher Botpress is listening at: http://localhost:3000
11:36:55.504 Launcher Botpress is exposed at: https://329422d6.ngrok.io
11:41:06.322 Launcher Unhandled Rejection [TypeError, Cannot read property 'engine1' of undefined]
STACK TRACE
TypeError: Cannot read property 'engine1' of undefined

====================================
Mod[code-editor] Could not load typings. Code completion will not be available [TypeError, Cannot read property 'loadTypings' of undefined]

==================================
Code Editor has a problem such
Could not fetch files from server: Cannot read property 'getAllFiles' of undefined

@MujiGMJ MujiGMJ added the wontfix This will not be worked on label Jan 31, 2020
@stale stale bot removed the wontfix This will not be worked on label Jan 31, 2020
@allardy
Copy link
Member

allardy commented Jan 31, 2020

It's gonna be fixed in the next version. When a bot fails to mount, the code editor was not working correctly, which means that if a channel failed to load (incorrect config), you had to edit the file manually.

@MujiGMJ
Copy link
Author

MujiGMJ commented Feb 1, 2020

It's gonna be fixed in the next version. When a bot fails to mount, the code editor was not working correctly, which means that if a channel failed to load (incorrect config), you had to edit the file manually.

Thank you for your response Allardy, I'm gonna running botpress bot on my fb page messenger. But it is not working properly. Is this error is related to this fault? I thought if can can edit manually, why bot isn't work? I followed all instruction of channel-messenger. I gonna use botpress bot in my own business bot webpage and facebookpage. But I got stuck :(

@allardy
Copy link
Member

allardy commented Feb 6, 2020

Hi @MujiGMJ , this is fixed in the latest version

@Namec
Copy link

Namec commented Feb 7, 2020

a small tip that can help,

due to some Messenger Authorisations.

before lunching Botpress Server, your messenger App need to by turned in Development Mode.

this will make the bot mounts without any probleme.

after that you can turn back your messenger app to active again.

@MujiGMJ MujiGMJ closed this as completed Feb 8, 2020
@MujiGMJ MujiGMJ reopened this Feb 8, 2020
@MujiGMJ MujiGMJ closed this as completed Feb 8, 2020
@michaelmass michaelmass transferred this issue from botpress/botpress Jun 22, 2023
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

3 participants