macpaw / together-app Goto Github PK
View Code? Open in Web Editor NEW:ukraine: A self-hosted app for keeping track of employee wellbeing and dislocation during the Russo-Ukrainian war, with an interactive map.
License: MIT License
:ukraine: A self-hosted app for keeping track of employee wellbeing and dislocation during the Russo-Ukrainian war, with an interactive map.
License: MIT License
Upon trying to log in or pressing the "Sign In with SSO" button I'm getting
"MemberNotFoundError: Sorry, this member _could be_ found.".
Additional info:
npm run dev
> [email protected] dev
> next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Loaded env from /home/nr/apps/together-app/.env
info - automatically enabled Fast Refresh for 1 custom loader
event - compiled client and server successfully in 2.6s (342 modules)
warn - using beta Middleware (not covered by semver) - https://nextjs.org/docs/messages/beta-middleware
wait - compiling /_middleware...
event - compiled client and server successfully in 645 ms (396 modules)
wait - compiling /login (client and server)...
event - compiled client and server successfully in 1584 ms (438 modules)
wait - compiling /api/auth/[...nextauth]...
event - compiled client and server successfully in 536 ms (473 modules)
wait - compiling /...
event - compiled client and server successfully in 499 ms (488 modules)
wait - compiling / (client and server)...
event - compiled client and server successfully in 1111 ms (547 modules)
MemberNotFoundError: Sorry, this member could be found.
at MemberProvider.getByEmail (webpack-internal:///./services/MemberProvider.ts:58:19)
at async getServerSideProps (webpack-internal:///./pages/index.tsx:104:22)
at async Object.renderToHTML (/home/nr/apps/together-app/node_modules/next/dist/server/render.js:589:20)
at async doRender (/home/nr/apps/together-app/node_modules/next/dist/server/base-server.js:879:38)
at async cacheEntry.responseCache.get.isManualRevalidate.isManualRevalidate (/home/nr/apps/together-app/node_modules/next/dist/server/base-server.js:979:28)
at async /home/nr/apps/together-app/node_modules/next/dist/server/response-cache.js:64:36 {
status: 400,
code: null,
data: null
}
wait - compiling /_error (client and server)...
npm run initialize
, the output message I get upon running is:> [email protected] initialize
> node jobs-dist/initialize.js
Authorization is required!
Request failed with status code 401
I'd appreciate any hints on what I might've done wrong.
2022-03-29T12:30:35.338132+00:00 heroku[router]: at=info method=POST path="/api/slack/action" host=talkable-together-app.herokuapp.com request_id=5a72ce94-2ce8-42e3-9cb8-0256941dcc8d fwd="3.89.79.86" dyno=web.1 connect=1ms service=4ms status=200 bytes=108 protocol=https
2022-03-29T12:30:35.433256+00:00 app[web.1]: [ERROR] web-api:WebClient:1 invalid url [json-pointer:view/blocks/1/accessory/url]
2022-03-29T12:30:35.433810+00:00 app[web.1]: Error: An API error occurred: invalid_arguments
2022-03-29T12:30:35.433812+00:00 app[web.1]: at platformErrorFromResult (/app/node_modules/@slack/web-api/dist/errors.js:51:33)
2022-03-29T12:30:35.433812+00:00 app[web.1]: at WebClient.apiCall (/app/node_modules/@slack/web-api/dist/WebClient.js:167:56)
2022-03-29T12:30:35.433813+00:00 app[web.1]: at processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-03-29T12:30:35.433813+00:00 app[web.1]: at async ModalService.openOrUpdateView (/app/.next/server/chunks/479.js:1620:13)
2022-03-29T12:30:35.433814+00:00 app[web.1]: at async ModalService.renderCheckInSelfConfirmation (/app/.next/server/chunks/479.js:1533:9)
2022-03-29T12:30:35.433814+00:00 app[web.1]: at async HandleActions (/app/.next/server/pages/api/slack/action.js:168:17)
2022-03-29T12:30:35.433815+00:00 app[web.1]: at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:182:9)
2022-03-29T12:30:35.433815+00:00 app[web.1]: at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:386:9)
2022-03-29T12:30:35.433816+00:00 app[web.1]: at async Object.fn (/app/node_modules/next/dist/server/base-server.js:488:37)
2022-03-29T12:30:35.433816+00:00 app[web.1]: at async Router.execute (/app/node_modules/next/dist/server/router.js:228:32) {
2022-03-29T12:30:35.433816+00:00 app[web.1]: code: 'slack_webapi_platform_error',
2022-03-29T12:30:35.433817+00:00 app[web.1]: data: {
2022-03-29T12:30:35.433817+00:00 app[web.1]: ok: false,
2022-03-29T12:30:35.433818+00:00 app[web.1]: error: 'invalid_arguments',
2022-03-29T12:30:35.433818+00:00 app[web.1]: response_metadata: { messages: [Array], scopes: [Array] }
2022-03-29T12:30:35.433819+00:00 app[web.1]: }
2022-03-29T12:30:35.433819+00:00 app[web.1]: }
Hello. It would be great to have an ability to group company members by division, team etc
I didn't found any information about this feature in documentation
Is it possible?
13
(1 row)`
104
(1 row)`
Settings are:
select min_val, max_val from pg_settings where name='max_connections'; min_val | max_val ---------+--------- 1 | 262143 (1 row)
After 120-150 in pg_stat_activity application doesn't work and there error in app logs:
PrismaClientInitializationError: Invalid
prisma.memberRecord.findFirst()` invocation:
Error querying the database: db error: FATAL: sorry, too many clients already
at Object.request (/app/node_modules/@prisma/client/runtime/index.js:39824:15)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async PrismaClient._request (/app/node_modules/@prisma/client/runtime/index.js:40646:18)
at async MemberProvider.findBySlackId (webpack-internal:///(api)/./services/MemberProvider.ts:63:24)
at async HandleActions (webpack-internal:///(api)/./pages/api/slack/action.ts:36:24)
at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:182:9)
at async DevServer.runApi (/app/node_modules/next/dist/server/next-server.js:386:9)
at async Object.fn (/app/node_modules/next/dist/server/base-server.js:488:37)
at async Router.execute (/app/node_modules/next/dist/server/router.js:228:32) {
clientVersion: '3.11.0',
errorCode: undefined
}`
How i can fix that without data loss in docker container with PostgreSQL?
Thanks!
BTW this app is great! )
Hello, how to track logs and diagnose the issue:
Updates for existing users are working fine, but new users added within the past 2 months are not being added. When attempting to do a Check-In for a different user who the program cannot find, it says that the user does not exist; however, I can select the user from the dropdown list in the form. Either npm reload and npm init or restart of docker is not helping....
Hi !
Hope your team is fine and safe !
I am have some issues with setting the location during check-in process .
App can't obtain location automatically and when I am trying to set it manually it simply can't find any city
In both cases log returns together | LocationProviderError: Sorry, no place could be found. Please try again.
together | LocationProviderError: Sorry, no place could be found. Please try again. together | at LocationService.getApproximatedLocationByLatLong (webpack-internal:///(api)/./services/LocationService.ts:31:19) together | at runMicrotasks (<anonymous>) together | at processTicksAndRejections (node:internal/process/task_queues:96:5) together | at async GetPlace (webpack-internal:///(api)/./pages/api/get-place.ts:17:26) together | at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:182:9) together | at async DevServer.runApi (/app/node_modules/next/dist/server/next-server.js:386:9) together | at async Object.fn (/app/node_modules/next/dist/server/base-server.js:488:37) together | at async Router.execute (/app/node_modules/next/dist/server/router.js:228:32) together | at async DevServer.run (/app/node_modules/next/dist/server/base-server.js:600:29) together | at async DevServer.run (/app/node_modules/next/dist/server/dev/next-dev-server.js:445:20) { together | status: 400, together | code: 'couldNotFetchLocationData', together | data: null together | }
I am deploying the app locally with docker .
Any hints how to resolve this issue ?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.