Coder Social home page Coder Social logo

Comments (4)

brettwillis avatar brettwillis commented on May 8, 2024

Hi @terumik
I'll need to give it a run with the change of ports like you are, so I can see how to get it working that way. I'll try in the next few days. In the meantime I have some comments:

I'm also stuck on deploying the example project to the remote

You'll probably want to replace the "strapi-connector-firestore": "../../" local dependency with the actual NPM package "strapi-connector-firestore": "^3.0.0-alpha.38". The parent directory isn't available in the Docker build, which will probably be the problem you're encountering?

Changed the port under root/index.ts, root/index.js, and root/firestore.js to 8081

Are you referring to this line below? As you can see the port that it tries to find the emulator on is hard coded.

Have you considered just trying to find what process is blocking port 8080 instead, so that you can just run the setup normally?

from strapi-connector-firestore.

brettwillis avatar brettwillis commented on May 8, 2024

I tried to login => 500 error and could not log in

Were there any extra details logged in the console corresponding to this error?

from strapi-connector-firestore.

terumik avatar terumik commented on May 8, 2024

Hi Brett,

Thank you for your reply.

Have you considered just trying to find what process is blocking port 8080 instead, so that you can just run the setup normally?

I asked this question because I could not kill the port, but today I ran windows powershell with admin mode and was able to kill the port and able to run the project locally. Sorry for bothering you.

You can close the question, but I will answer your question for your reference.
The port I manually changed was

  • strapi-connector-firestore/src/index.ts
  • lib/index.js
  • cloud-run-and-hosting/firebase.json
  • test/utils/firestore.js

The error logged in my console was as follows:
[2021-08-10T14:22:46.653Z] debug TRANSACTION (read-only): 2 reads.
[2021-08-10T14:22:46.763Z] error Error: secretOrPrivateKey must have a value at Object.module.exports [as sign] (C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\jsonwebtoken\sign.js:107:20)
at Object.createJwtToken (C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\strapi-admin\services\token.js:33:14)
at C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\strapi-admin\controllers\authentication.js:43:46
at dispatch (C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\koa-compose\index.js:42:32)
at C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\strapi-admin\controllers\authentication.js:35:16
at callback (C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\koa-passport\lib\framework\koa.js:93:25)
at Strategy.strategy.success (C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\passport\lib\middleware\authenticate.js:219:18)
at verified (C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\passport-local\lib\strategy.js:83:10)
at C:\Users\User\Desktop\strapi-connector-firestore-master\examples\cloud-run-and-hosting\node_modules\strapi-admin\services\passport\local-strategy.js:15:43
[2021-08-10T14:22:46.766Z] debug POST /admin/login (125 ms) 500

from strapi-connector-firestore.

brettwillis avatar brettwillis commented on May 8, 2024

@terumik no worries, glad it is resolved. Feel free to ask if you have any other issues.

from strapi-connector-firestore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.