rainerino / cpen-321 Goto Github PK
View Code? Open in Web Editor NEWstudy buddy forever!!
study buddy forever!!
(node:22240) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of undefined
at l (/home/yiyi/Documents/CPEN-321/node_modules/geolib/lib/index.js:1:1859)
at t (/home/yiyi/Documents/CPEN-321/node_modules/geolib/lib/index.js:1:3252)
at S (/home/yiyi/Documents/CPEN-321/node_modules/geolib/lib/index.js:1:3948)
at Module.D (/home/yiyi/Documents/CPEN-321/node_modules/geolib/lib/index.js:1:5951)
at /home/yiyi/Documents/CPEN-321/core/suggestion.js:26:29
at Array.filter (<anonymous>)
at Object.exports.suggestNearbyUser (/home/yiyi/Documents/CPEN-321/core/suggestion.js:21:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /home/yiyi/Documents/CPEN-321/controllers/user.js:48:46
(node:22240) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:22240) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
POST /user/login - - ms - -
the app crashes everyone we click on the drop down bar for repeat type
nodejs
web_1 | Time: 1574091588463
web_1 | GET /user/5dd284b4993f92035815be24/suggested-friends 400 75.260 ms - 11
web_1 | GET /user/5dd284b4993f92035815be24/friendlist - - ms - -
web_1 | TypeError: Cannot read property 'location' of null
web_1 | at userList.filter (/starter/core/suggestion.js:27:28)
web_1 | at Array.filter (<anonymous>)
web_1 | at Object.exports.suggestNearbyUser (/starter/core/suggestion.js:21:27)
web_1 | at <anonymous>
web_1 | at process._tickCallback (internal/process/next_tick.js:189:7)
AS
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.study_buddy, PID: 13668
java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
at com.example.study_buddy.fragments.FriendsFragment$2.onResponse(FriendsFragment.java:118)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:70)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
D/EGL_emulation: eglMakeCurrent: 0xebbd54e0: ver 2 0 (tinfo 0xebc34b40)
I/Process: Sending signal. PID: 13668 SIG: 9
Process 13668 terminated.
new user sign up
login
add friend
go to chat
leave chat
add event + invite
notification
delete event
add friend (show suggest friends)
(refresh)
create group
add users
refresh the group calendar
create group meeting
"400"
refresh
google calendar
show calendar
delete friend
delete group "404"
web_1 | [2019-11-27T11:26:52.790] [DEBUG] User Controller - {
web_1 | access_token: 'ya29.Il-yB7l4U4va5BMCcI6sdn8_VlP6onf2hcIAlO5xZgZf2nyZ7BMCRGMclZqXp7eoKBTXHc_Aj-dZBSKOw-c9edyPdWnLpuf7zXT-miuCuHKElIAciigHAqPRuuXE5ry
BSg',
web_1 | scope: 'https://www.googleapis.com/auth/drive.appdata openid https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinf
o.profile https://www.googleapis.com/auth/calendar.readonly',
web_1 | expires_in: '3600',
web_1 | token_type: 'Bearer',
web_1 | id_token: 'eyJhbGciOiJSUzI1NiIsImtpZCI6ImRlZThkM2RhZmJmMzEyNjJhYjkzNDdkNjIwMzgzMjE3YWZkOTZjYTMiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2FjY291bnRzL
mdvb2dsZS5jb20iLCJhenAiOiI1NzIzMDQ3ODYzMjQtZnJodnE3cmphNTJhMGVmMGVtOHYxa2w4MWpqN2FmODEuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJhdWQiOiI1NzIzMDQ3ODYzMjQtZnJodnE
3cmphNTJhMGVmMGVtOHYxa2w4MWpqN2FmODEuYXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iLCJzdWIiOiIxMTM1MTYwNjA1NTQ0MzI4MzA3MjUiLCJlbWFpbCI6ImFsYmVydC55YW55eUBnbWFpbC5jb20iL
CJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiYXRfaGFzaCI6ImoxdlZNRklwRk9aU1E0SEVPREdFTkEiLCJuYW1lIjoiWWl5aSBZYW4iLCJwaWN0dXJlIjoiaHR0cHM6Ly9saDMuZ29vZ2xldXNlcmNvbnRlbnQuY29
tL2EtL0FBdUU3bUFERm5SRWNnejVCcVg3clN1c0FVOGZjVjhYZkV0dHFaNkQxMldHUXc9czk2LWMiLCJnaXZlbl9uYW1lIjoiWWl5aSIsImZhbWlseV9uYW1lIjoiWWFuIiwibG9jYWxlIjoiZW4tR0IiLCJpY
XQiOjE1NzQ4NTQwMTIsImV4cCI6MTU3NDg1NzYxMn0.EiqCnXh-WTEtliy-ob7cpY-jyHvQ5AjeY-IYE61utP80nG16MJxhnhnXMydPZDlf1E45TgcI2Laj9ejaijJDs9-9aKFfv5I-xTRL9CIJIworDNLQ-LJ
0NC9LaYijf09VMPgprArYnFsPH9nuXqXuT5KY7QRmWY6orwLkMg_ZzeqjIV156nonz2COETEDX_DT0GIPyQn9DB5Q0heXx3iY06bEHuuFOflFgtJkcf1XDUUWsKCekwgtd_Y2ypLGMLnLrB2d5fAOKc0RXTj32
pdd-xfoZ6k-Z2ORBQETgkslbPY2w9hEwtOxLFMeHdu3KHXN080BfJDNb1d-yzaeyptSpg',
web_1 | firstName: 'Yiyi',
web_1 | lastName: 'Yan',
web_1 | email: '[email protected]'
web_1 | }
web_1 | [2019-11-27T11:26:53.010] [DEBUG] Google Calendar - []
web_1 | [2019-11-27T11:26:53.010] [DEBUG] Google Calendar - []
web_1 | [2019-11-27T11:26:53.012] [ERROR] User Controller - TypeError: Converting circular structure to JSON
web_1 | --> starting at object with constructor 'NativeTopology'
web_1 | | property 's' -> object with constructor 'Object'
web_1 | | property 'sessionPool' -> object with constructor 'ServerSessionPool'
web_1 | --- property 'topology' closes the circle
web_1 | POST /user/google-calendar 500 302.139 ms - 294
#18 We lost all the features from this pull request for some reason. Please recover
When login as Yiyi, click on group calendar leads to crash
It takes about 3-5 seconds to load the while event list, even though the request is completed
web_1 | > [email protected] start /starter
web_1 | > node app.js
web_1 |
web_1 | Connected: MongoDB is connected at mongodb+srv://user:[email protected]
/populate?retryWrites=true&w=majority.
web_1 | Running: Socket.io app is running on port 3000
web_1 | Running: App is running at http://localhost:8080 in development mode
web_1 | Press CTRL-C to stop
web_1 |
web_1 | Time: 1574082144028
web_1 | POST /user/login 200 99.532 ms - 808
web_1 | Time: 1574082146981
web_1 | Time: 1574082146985
web_1 | events.js:183
web_1 | throw er; // Unhandled 'error' event
web_1 | ^
web_1 |
web_1 | TypeError: Cannot read property 'suggestedFriendList' of null
web_1 | at User.findById (/starter/controllers/user.js:302:39)
web_1 | at /starter/node_modules/mongoose/lib/model.js:4604:16
web_1 | at /starter/node_modules/mongoose/lib/query.js:4351:12
web_1 | at model.Query.Query._completeOne (/starter/node_modules/mongoose/lib/query.js:2054:12
)
web_1 | at Immediate.Query.base.findOne.call (/starter/node_modules/mongoose/lib/query.js:2116
:10)
web_1 | at Immediate._onImmediate (/starter/node_modules/mquery/lib/utils.js:116:16)
web_1 | at runCallback (timers.js:810:20)
web_1 | at tryOnImmediate (timers.js:768:5)
web_1 | at processImmediate [as _immediateCallback] (timers.js:745:5)
web_1 | npm ERR! code ELIFECYCLE
web_1 | npm ERR! errno 1
web_1 | npm ERR! [email protected] start: `node app.js`
web_1 | npm ERR! Exit status 1
web_1 | npm ERR!
web_1 | npm ERR! Failed at the [email protected] start script.
web_1 | npm ERR! This is probably not a problem with npm. There is likely additional logging outpu
t above.
web_1 |
web_1 | npm ERR! A complete log of this run can be found in:
web_1 | npm ERR! /root/.npm/_logs/2019-11-18T13_02_27_077Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.