F8app: message: request api.parse.com failed,reason:certificate has expired

Created on 7 Jul 2017  ·  24Comments  ·  Source: fbsamples/f8app

Loading Speakers
{ FetchError: request to https://api.parse.com/1/classes/Speakers failed, reason: certificate has expired
at ClientRequest. (/Users/jiamin/Downloads/f8app-master/node_modules/node-fetch/index.js:127:11)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at emitErrorNT (net.js:1277:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128: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' }

Most helpful comment

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'
    }
  });

All 24 comments

Same issue.

Same issue.

Same issue.

Same issue.Hope it can be solved quickly.

Same issue.Hope it can be solved quickly.

Same issue.How to solve?

Anyone has an offline version of this database?

Same issue.

+1

Same issue

Same issue.Hope it can be solved quickly.

Same issue.

Same issue

same :(

同样的问题啊,发一个数据库离线版本

+1

+1

Yes, I met same issue yesterday , after spending a whole night I could run the iOS app now . please have a look at this https://github.com/fbsamples/f8app/issues/154 good luck. Instead of npm run inport-data , let's import the local db files.

+1

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'
    }
  });

same issue

Please see https://github.com/fbsamples/f8app/issues/154.

I solve this problem by these steps:
download https://github.com/ReactWindows/f8app/blob/data/mongodb/db.zip
start mongoDB server by:
mongod --dbpath YOURDATAPATH //the path you just downLoaded
start mongoDB client by:
mongo

I followed #154, and edited import-data-from-parse.js as well but the import hangs.

is no one discussing what the error revolves around? Newbie over here but i thought that was common place on most developer Q&A websites?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikelambert picture mikelambert  ·  7Comments

zh-wowtv picture zh-wowtv  ·  6Comments

trompx picture trompx  ·  4Comments

lee-my picture lee-my  ·  3Comments

davidtian719 picture davidtian719  ·  9Comments