profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/aniravi24/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

startedhaskell/haskell-language-server

started time in 3 days

push eventaniravi24/explore-hacks-db-workshop-2021

Ani Ravi

commit sha c966bec22f104ce744f8c8aa9d03df8411dc3b18

fix: clean up some grammar

view details

push time in 10 days

push eventaniravi24/explore-hacks-db-workshop-2021

Ani Ravi

commit sha 4d903266a785efda777958452ae3b25c814b9634

fix: uppercase keywords for readability

view details

push time in 11 days

push eventaniravi24/explore-hacks-db-workshop-2021

Ani Ravi

commit sha f0c27ca371592ed221f9e312957b950b88fa1c8f

feat: add SQL resource for handling some anti-patterns

view details

push time in 11 days

push eventaniravi24/explore-hacks-db-workshop-2021

Ani Ravi

commit sha 3843388748021ce7e99997a3f86bae34fddab85e

fix: small tweak to postgis query

view details

push time in 11 days

push eventaniravi24/explore-hacks-db-workshop-2021

Ani Ravi

commit sha 4c9c3bf351f778d21219ececadee6886e647aaf0

feat: add hasura postgres introduction docs

view details

push time in 13 days

push eventaniravi24/explore-hacks-db-workshop-2021

Ani Ravi

commit sha 21a10123232f1d549113cc60e0252e848730f48c

feat: some more appendix notes

view details

push time in 17 days

PublicEvent

startedgleam-lang/gleam

started time in 22 days

issue commentchatwoot/chatwoot

redis connection error upon custom domain setup

Didn't realize my issue was a duplicate, but in case anyone's wondering how to solve the SSL issue

https://github.com/chatwoot/chatwoot/issues/2420

tabrza

comment created time in 2 months

push eventaniravi24/chatwoot-react-native-widget

Ani Ravi

commit sha 1f1a68d8246ec5c1034c3093229816797c13f55c

add custom attributes and change optionals

view details

push time in 2 months

PR opened chatwoot/chatwoot-react-native-widget

add typescript typings

Adding typescript types to widget

+22 -0

0 comment

1 changed file

pr created time in 2 months

push eventaniravi24/chatwoot-react-native-widget

Ani Ravi

commit sha 153ba81c1023125a17ed8ef0fe9f8fe9af5dbd6f

chore: add typescript typings

view details

push time in 2 months

issue openedchatwoot/chatwoot

Redis 6 on Heroku Premium breaks ActionCable config

Describe the bug

Heroku made some SSL/TLS changes with Redis 6, but there's a library called ActionCable which has a config file in the chatwoot project (cable.yml) where I needed to add this same verify mode config that was missing. We've already fixed this issue, but I wanted to put this issue up because it would be great to document this somewhere so other people don't run into this. Heroku upgraded our Redis instance automatically last night and inadvertently took down our service.

To fix this, add the ssl_params/verify_mode part of this config to your cable.yml

adapter: redis
  url: <%= ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379') %>
  password: <%= ENV.fetch('REDIS_PASSWORD', nil).presence %>
  ssl_params:
    verify_mode: <%= OpenSSL::SSL::VERIFY_NONE %>
  channel_prefix: <%= "chatwoot_#{Rails.env}_action_cable"  %>

and add

ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE }

to your base_config in config.rb for redis after the URL, password, timeout, etc.

References are down below.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy with a premium instance of Redis on Heroku, and app will go down completely.

Expected behavior

Not crash.

Server logs

2021-06-12T16:09:33.327038+00:00 app[web.2]: #<Thread:0x000055dae3744280 /app/vendor/bundle/ruby/2.7.0/gems/actioncable-6.0.3.7/lib/action_cable/subscription_adapter/redis.rb:151 run> terminated with exception (report_on_exception is true):
2021-06-12T16:09:33.327151+00:00 app[web.2]: /app/vendor/bundle/ruby/2.7.0/gems/redis-4.2.1/lib/redis/connection/ruby.rb:255:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) (OpenSSL::SSL::SSLError)

Environment self-hosted installation of Chatwoot on Heroku

Additional context

https://help.heroku.com/HC0F8CUS/redis-connection-issues

https://github.com/rails/rails/issues/42036#issuecomment-824613214

https://ogirginc.github.io/en/heroku-redis-ssl-error

created time in 2 months

push eventzendoor/chatwoot

Ani Ravi

commit sha 176ed8e35b92e62a2fbb0ff730c999876c18086f

try changing cable config

view details

push time in 2 months

push eventzendoor/chatwoot

Ani Ravi

commit sha 56e682de69b0ffcf0781a421d221dfe2482d7bf2

try upgrading redis client

view details

push time in 2 months

push eventzendoor/chatwoot

Ani Ravi

commit sha 269eae788b3c21ebab425f92920d047905b1dd6c

Revert "try changing redis config might need to revert" This reverts commit ece05aafe6e133cb56305acec576d14eb641f6c7.

view details

push time in 2 months

push eventzendoor/chatwoot

Ani Ravi

commit sha ece05aafe6e133cb56305acec576d14eb641f6c7

try changing redis config might need to revert

view details

push time in 2 months

startedFrameworkComputer/ExpansionCards

started time in 2 months

startedclash-lang/clash-compiler

started time in 2 months

pull request commentchatwoot/chatwoot

chore: Universal Linking for Android

Nice work! I have a comment about committing SHA_CERT_FINGERPRINT

responded above :smile:

aniravi24

comment created time in 2 months

Pull request review commentchatwoot/chatwoot

chore: Universal Linking for Android

 SLACK_CLIENT_SECRET= ### Change this env variable only if you are using a custom build mobile app ## Mobile app env variables IOS_APP_ID=6C953F3RX2.com.chatwoot.app+ANDROID_BUNDLE_ID=com.chatwoot.app++# https://developers.google.com/android/guides/client-auth (use keytool to print the fingerprint in the first section)+ANDROID_SHA256_CERT_FINGERPRINT=05:A2:2C:35:EE:F2:51:23:72:4D:72:67:A5:6C:8C:58:22:2A:00:D6:DB:F6:45:D5:C1:82:D2:80:A4:69:A8:FE

This is just a dummy example from google's docs!

aniravi24

comment created time in 2 months

PullRequestReviewEvent

pull request commentchatwoot/chatwoot

chore: Universal Linking for Android

@aniravi24 could you add specs for the new route as well? example ref: https://github.com/chatwoot/chatwoot/blob/develop/spec/controllers/apple_app_spec.rb

Sure, sorry I missed that, first time doing ruby!

aniravi24

comment created time in 2 months

push eventaniravi24/chatwoot

Ani Ravi

commit sha 15723a38b3a5f7fd11b9baaca1f2338421054e8b

test: add spec for android assetlinks

view details

push time in 2 months

push eventaniravi24/chatwoot

Ani Ravi

commit sha 9951d35c65c9c75b43c4e8199e43013dddcbd16d

chore: styling part 2

view details

push time in 2 months

push eventaniravi24/chatwoot

Ani Ravi

commit sha 0fd3cb527494d7c9205fa82aa3c9bf73fcca581f

chore: fix styling

view details

push time in 2 months

PR opened chatwoot/chatwoot

Universal Linking for Android

Pull Request Template

Description

Sorry I didn't make a separate issue for this, as it ties to universal linking for iOS. This is the universal linking config for Android, so that links to your hosted chatwoot directly go into the app.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • [ x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

(Not sure if add environment variables that aren't used is a breaking change)

How Has This Been Tested?

This has been tested in production with a self-hosted chatwoot instance. You have to deploy this wherever the app is pointing to in its linking config, and then open a link that points to that domain. It will automatically go inside the app instead of prompting you at the OS level as to which app to open it with.

Checklist:

  • [x ] My code follows the style guidelines of this project
  • [ x] I have performed a self-review of my own code
  • [ x] I have commented on my code, particularly in hard-to-understand areas
  • [ x] I have made corresponding changes to the documentation
  • [ x] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ x] New and existing unit tests pass locally with my changes
  • [ x] Any dependent changes have been merged and published in downstream modules
+23 -0

0 comment

4 changed files

pr created time in 2 months