fbsamples/f8app

Error on connecting to api.parse.com

Closed this issue ยท 5 comments

    at ClientRequest.<anonymous> (/Users/emmanuelakinde/Desktop/Repositories/f8app/node_modules/node-fetch/index.js:133:11)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at TLSSocket.socketErrorListener (_http_client.js:399:9)
    at emitOne (events.js:115:13)
    at TLSSocket.emit (events.js:210:7)
    at emitErrorNT (internal/streams/destroy.js:62:8)
    at _combinedTickCallback (internal/process/next_tick.js:102:11)
    at process._tickDomainCallback (internal/process/next_tick.js:198:9)
  name: 'FetchError',
  message: 'request to https://api.parse.com/1/classes/Speakers failed, reason: certificate has expired',
  type: 'system',
  errno: 'CERT_HAS_EXPIRED',
  code: 'CERT_HAS_EXPIRED' }```

IT SAYS CERTIFICATE HAS EXPIRED.

Same here. After spending about 2 days troubleshooting and another 2 just reading, I think it is safe to conclude that due to the Parse shutdown...this repo can no longer serve as a tutorial. There doesn't seem to be away round that error

YES,it's no longer valide on https://api.parse.com/1/classes/Speakers.I hope it will be valide again!

I resolved this problem. I just edited import-data-from-parse.js. see below

async function importClass(className) {
  console.log('Loading', className);
  //const response = await fetch(`https://api.parse.com/1/classes/${className}`, {
  const response = await fetch(`http://localhost:8080/parse/classes/${className}`, {
    method: 'get',
    // headers: {
      // 'X-Parse-Application-Id': 'R0yDMIKCUyEke2UiadcTBBGd1L5hMBTGJSdBNL3W',
      // 'X-Parse-JavaScript-Key': 'BJ5V0APFMlvmCBPDXl9Mgh3q3dFrs18XkQz6A2bO',
      // 'Content-Type': 'application/json'
    // },
    headers: {
      'X-Parse-Application-Id': 'oss-f8-app-2016',
      'Content-Type': 'application/json'
    }
  });

@byk04712
I don't think that was resolving the problem. The import script is supposed to load data from parse.com to initialize the local parse server with the conference entities.

With 2017 version we now check in the data into the repo, so there's no need to send requests to third party web services https://github.com/fbsamples/f8app/tree/master/server/mongorestore/data