Code Monkey home page Code Monkey logo

together-app's People

Contributors

art-tykh avatar raycharius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

together-app's Issues

"Sorry, this member could be found"

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)...
  • I've failed to run 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.

Issue while calling slack /together command "[ERROR] web-api:WebClient:1 invalid url [json-pointer:view/blocks/1/accessory/url]"

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]: }

PostgreSQL error : FATAL: sorry, too many clients already

Hi!
Have some issues with growing connections and seems they didn't close after some time.
`select count(1) from pg_stat_activity;
count

13

(1 row)`

After 1-2 hours:
`select count(1) from pg_stat_activity;
count

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! )

Information collection for new users is not working.

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....

Chek-in location issue

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

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.