Comments (4)
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.
strapi-connector-firestore/src/index.ts
Line 107 in 02c2976
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.
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.
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.
@terumik no worries, glad it is resolved. Feel free to ask if you have any other issues.
from strapi-connector-firestore.
Related Issues (20)
- Optimisation: use a field mask when fetching a singular entry from a flat collection
- Fix coercion lifecycle
- Any example how to implement snapshot for realtime data fetching on front-end? HOT 2
- Feature: Populate designated fields when storing references HOT 2
- media library not displaying uploaded files HOT 9
- Collection Types - Filters (500 internal error) HOT 4
- Cannot delete medias HOT 5
- Feature: Firestore subcollections
- Strapi strarting issue after connect with strapi-connector-firestore HOT 5
- Feature: Utilise read-only transaction
- Error "Collection File ... is missing from model" when using repeatable component HOT 3
- Lazily create flat collection documents
- Feature: Search delegates
- Unable to deploy project to remote HOT 2
- Relation handler cannot handle FieldOperation values
- Example project: EACCES in npm install
- Each time when run development mode its create new permissions in permissions array HOT 3
- Unknown dialect undefined HOT 1
- Connecting to remote server is extremely slow HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi-connector-firestore.