Guest User

Untitled

a guest
Jun 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.36 KB | None | 0 0
  1. Query {
  2. _mongooseOptions: {},
  3. mongooseCollection:
  4. NativeCollection {
  5. collection: Collection { s: [Object] },
  6. opts:
  7. { bufferCommands: true,
  8. capped: false,
  9. '$wasForceClosed': undefined },
  10. name: 'access_tokens',
  11. collectionName: 'access_tokens',
  12. conn:
  13. NativeConnection {
  14. base: [Object],
  15. collections: [Object],
  16. models: [Object],
  17. config: [Object],
  18. replica: false,
  19. options: null,
  20. otherDbs: [],
  21. relatedDbs: {},
  22. states: [Object],
  23. _readyState: 1,
  24. _closeCalled: false,
  25. _hasOpened: true,
  26. _listening: false,
  27. _connectionOptions: [Object],
  28. client: [Object],
  29. name: 'api',
  30. '$initialConnection': [Object],
  31. _events: [Object],
  32. _eventsCount: 1,
  33. db: [Object] },
  34. queue: [],
  35. buffer: false,
  36. emitter:
  37. EventEmitter {
  38. domain: null,
  39. _events: {},
  40. _eventsCount: 0,
  41. _maxListeners: undefined } },
  42. model:
  43. { [Function: model]
  44. hooks: Kareem { _pres: [Object], _posts: [Object] },
  45. base:
  46. Mongoose {
  47. connections: [Array],
  48. models: [Object],
  49. modelSchemas: [Object],
  50. options: [Object],
  51. _pluralize: [Function: pluralize],
  52. plugins: [Array] },
  53. modelName: 'access_token',
  54. model: [Function: model],
  55. db:
  56. NativeConnection {
  57. base: [Object],
  58. collections: [Object],
  59. models: [Object],
  60. config: [Object],
  61. replica: false,
  62. options: null,
  63. otherDbs: [],
  64. relatedDbs: {},
  65. states: [Object],
  66. _readyState: 1,
  67. _closeCalled: false,
  68. _hasOpened: true,
  69. _listening: false,
  70. _connectionOptions: [Object],
  71. client: [Object],
  72. name: 'api',
  73. '$initialConnection': [Object],
  74. _events: [Object],
  75. _eventsCount: 1,
  76. db: [Object] },
  77. discriminators: undefined,
  78. '$appliedMethods': true,
  79. '$appliedHooks': true,
  80. schema:
  81. Schema {
  82. obj: [Object],
  83. paths: [Object],
  84. aliases: {},
  85. subpaths: {},
  86. virtuals: [Object],
  87. singleNestedPaths: {},
  88. nested: {},
  89. inherits: {},
  90. callQueue: [],
  91. _indexes: [],
  92. methods: {},
  93. methodOptions: {},
  94. statics: {},
  95. tree: [Object],
  96. query: {},
  97. childSchemas: [],
  98. plugins: [Array],
  99. s: [Object],
  100. _userProvidedOptions: {},
  101. options: [Object],
  102. '$globalPluginsApplied': true,
  103. _requiredpaths: [] },
  104. collection:
  105. NativeCollection {
  106. collection: [Object],
  107. opts: [Object],
  108. name: 'access_tokens',
  109. collectionName: 'access_tokens',
  110. conn: [Object],
  111. queue: [],
  112. buffer: false,
  113. emitter: [Object] },
  114. Query: { [Function] base: [Object] },
  115. '$__insertMany': [Function],
  116. '$init': Promise { [Object], catch: [Function] } },
  117. schema:
  118. Schema {
  119. obj: { accessToken: [Object], expires: [Object], clientId: [Object] },
  120. paths:
  121. { accessToken: [Object],
  122. expires: [Object],
  123. clientId: [Object],
  124. _id: [Object],
  125. __v: [Object] },
  126. aliases: {},
  127. subpaths: {},
  128. virtuals: { id: [Object] },
  129. singleNestedPaths: {},
  130. nested: {},
  131. inherits: {},
  132. callQueue: [],
  133. _indexes: [],
  134. methods: {},
  135. methodOptions: {},
  136. statics: {},
  137. tree:
  138. { accessToken: [Object],
  139. expires: [Object],
  140. clientId: [Object],
  141. _id: [Object],
  142. __v: [Function: Number],
  143. id: [Object] },
  144. query: {},
  145. childSchemas: [],
  146. plugins: [ [Object], [Object], [Object], [Object], [Object] ],
  147. s: { hooks: [Object] },
  148. _userProvidedOptions: {},
  149. options:
  150. { typeKey: 'type',
  151. id: true,
  152. noVirtualId: false,
  153. _id: true,
  154. noId: false,
  155. validateBeforeSave: true,
  156. read: null,
  157. shardKey: null,
  158. autoIndex: null,
  159. minimize: true,
  160. discriminatorKey: '__t',
  161. versionKey: '__v',
  162. capped: false,
  163. bufferCommands: true,
  164. strict: true,
  165. pluralization: true },
  166. '$globalPluginsApplied': true,
  167. _requiredpaths: [] },
  168. op: 'findOne',
  169. options: {},
  170. _conditions: { accessToken: '3c6ce4b99e9e6a81a1cda3567fe35d76a421ca4a' },
  171. _fields: undefined,
  172. _update: undefined,
  173. _path: undefined,
  174. _distinct: undefined,
  175. _collection:
  176. NodeCollection {
  177. collection:
  178. NativeCollection {
  179. collection: [Object],
  180. opts: [Object],
  181. name: 'access_tokens',
  182. collectionName: 'access_tokens',
  183. conn: [Object],
  184. queue: [],
  185. buffer: false,
  186. emitter: [Object] },
  187. collectionName: 'access_tokens' },
  188. _traceFunction: undefined }
  189. 1 3c6ce4b99e9e6a81a1cda3567fe35d76a421ca4d
  190. Query {
  191. _mongooseOptions: {},
  192. mongooseCollection:
  193. NativeCollection {
  194. collection: Collection { s: [Object] },
  195. opts:
  196. { bufferCommands: true,
  197. capped: false,
  198. '$wasForceClosed': undefined },
  199. name: 'access_tokens',
  200. collectionName: 'access_tokens',
  201. conn:
  202. NativeConnection {
  203. base: [Object],
  204. collections: [Object],
  205. models: [Object],
  206. config: [Object],
  207. replica: false,
  208. options: null,
  209. otherDbs: [],
  210. relatedDbs: {},
  211. states: [Object],
  212. _readyState: 1,
  213. _closeCalled: false,
  214. _hasOpened: true,
  215. _listening: false,
  216. _connectionOptions: [Object],
  217. client: [Object],
  218. name: 'api',
  219. '$initialConnection': [Object],
  220. _events: [Object],
  221. _eventsCount: 1,
  222. db: [Object] },
  223. queue: [],
  224. buffer: false,
  225. emitter:
  226. EventEmitter {
  227. domain: null,
  228. _events: {},
  229. _eventsCount: 0,
  230. _maxListeners: undefined } },
  231. model:
  232. { [Function: model]
  233. hooks: Kareem { _pres: [Object], _posts: [Object] },
  234. base:
  235. Mongoose {
  236. connections: [Array],
  237. models: [Object],
  238. modelSchemas: [Object],
  239. options: [Object],
  240. _pluralize: [Function: pluralize],
  241. plugins: [Array] },
  242. modelName: 'access_token',
  243. model: [Function: model],
  244. db:
  245. NativeConnection {
  246. base: [Object],
  247. collections: [Object],
  248. models: [Object],
  249. config: [Object],
  250. replica: false,
  251. options: null,
  252. otherDbs: [],
  253. relatedDbs: {},
  254. states: [Object],
  255. _readyState: 1,
  256. _closeCalled: false,
  257. _hasOpened: true,
  258. _listening: false,
  259. _connectionOptions: [Object],
  260. client: [Object],
  261. name: 'api',
  262. '$initialConnection': [Object],
  263. _events: [Object],
  264. _eventsCount: 1,
  265. db: [Object] },
  266. discriminators: undefined,
  267. '$appliedMethods': true,
  268. '$appliedHooks': true,
  269. schema:
  270. Schema {
  271. obj: [Object],
  272. paths: [Object],
  273. aliases: {},
  274. subpaths: {},
  275. virtuals: [Object],
  276. singleNestedPaths: {},
  277. nested: {},
  278. inherits: {},
  279. callQueue: [],
  280. _indexes: [],
  281. methods: {},
  282. methodOptions: {},
  283. statics: {},
  284. tree: [Object],
  285. query: {},
  286. childSchemas: [],
  287. plugins: [Array],
  288. s: [Object],
  289. _userProvidedOptions: {},
  290. options: [Object],
  291. '$globalPluginsApplied': true,
  292. _requiredpaths: [] },
  293. collection:
  294. NativeCollection {
  295. collection: [Object],
  296. opts: [Object],
  297. name: 'access_tokens',
  298. collectionName: 'access_tokens',
  299. conn: [Object],
  300. queue: [],
  301. buffer: false,
  302. emitter: [Object] },
  303. Query: { [Function] base: [Object] },
  304. '$__insertMany': [Function],
  305. '$init': Promise { [Object], catch: [Function] } },
  306. schema:
  307. Schema {
  308. obj: { accessToken: [Object], expires: [Object], clientId: [Object] },
  309. paths:
  310. { accessToken: [Object],
  311. expires: [Object],
  312. clientId: [Object],
  313. _id: [Object],
  314. __v: [Object] },
  315. aliases: {},
  316. subpaths: {},
  317. virtuals: { id: [Object] },
  318. singleNestedPaths: {},
  319. nested: {},
  320. inherits: {},
  321. callQueue: [],
  322. _indexes: [],
  323. methods: {},
  324. methodOptions: {},
  325. statics: {},
  326. tree:
  327. { accessToken: [Object],
  328. expires: [Object],
  329. clientId: [Object],
  330. _id: [Object],
  331. __v: [Function: Number],
  332. id: [Object] },
  333. query: {},
  334. childSchemas: [],
  335. plugins: [ [Object], [Object], [Object], [Object], [Object] ],
  336. s: { hooks: [Object] },
  337. _userProvidedOptions: {},
  338. options:
  339. { typeKey: 'type',
  340. id: true,
  341. noVirtualId: false,
  342. _id: true,
  343. noId: false,
  344. validateBeforeSave: true,
  345. read: null,
  346. shardKey: null,
  347. autoIndex: null,
  348. minimize: true,
  349. discriminatorKey: '__t',
  350. versionKey: '__v',
  351. capped: false,
  352. bufferCommands: true,
  353. strict: true,
  354. pluralization: true },
  355. '$globalPluginsApplied': true,
  356. _requiredpaths: [] },
  357. op: 'findOne',
  358. options: {},
  359. _conditions: { accessToken: '3c6ce4b99e9e6a81a1cda3567fe35d76a421ca4d' },
  360. _fields: undefined,
  361. _update: undefined,
  362. _path: undefined,
  363. _distinct: undefined,
  364. _collection:
  365. NodeCollection {
  366. collection:
  367. NativeCollection {
  368. collection: [Object],
  369. opts: [Object],
  370. name: 'access_tokens',
  371. collectionName: 'access_tokens',
  372. conn: [Object],
  373. queue: [],
  374. buffer: false,
  375. emitter: [Object] },
  376. collectionName: 'access_tokens' },
  377. _traceFunction: undefined }
  378. OAuth2Error: The access token provided is invalid.
  379. at OAuth2Error (/home/vagrant/api/node_modules/node-oauth2-server/lib/error.js:30:12)
  380. at /home/vagrant/api/node_modules/node-oauth2-server/lib/authorise.js:114:19
  381. at /home/vagrant/api/node_modules/mongoose/lib/model.js:4233:16
  382. at model.Query.Query._completeOne (/home/vagrant/api/node_modules/mongoose/lib/query.js:1513:12)
  383. at Immediate.Query.base.findOne.call (/home/vagrant/api/node_modules/mongoose/lib/query.js:1569:10)
  384. at Immediate.<anonymous> (/home/vagrant/api/node_modules/mquery/lib/utils.js:119:16)
  385. at runCallback (timers.js:800:20)
  386. at tryOnImmediate (timers.js:762:5)
  387. at processImmediate [as _immediateCallback] (timers.js:733:5)
Add Comment
Please, Sign In to add comment