greenlight icon indicating copy to clipboard operation
greenlight copied to clipboard

can someone tell me what is this api call. : GET "/vmeet/installHook.js.map" I dont find thsi endpoint anywhere in the application

Open rautniraj opened this issue 9 months ago • 0 comments

Above api request get called -

When i create a new user using signup page. My registration method is approve/decline with no SMTP configuration.

I see after user creation it navigates to /room (because the user have permission to create rooms), now because he is not approved yet, the AuthenticatedOnly component checks the status which shows he is pending so it calls deleteSession.mutate which logout the user giving him message that account is under pending.

This part of Authenticatedonly runs

  // User is either pending or banned
  if (currentUser.signed_in && (currentUser.status !== 'active' || !currentUser.verified) ) {

    hasDeletedSession.current = true; // Mark as executed to prevent infinite calls

    deleteSession.mutate();

    if (currentUser.status === 'pending') {
      toast.error(t('toast.error.users.pending'));
    } else if (currentUser.status === 'banned') {
      toast.error(t('toast.error.users.banned'));
    } else {
      toast.error(t('toast.error.signin_required'));
    }
  }

Now i see two times this deleteSession.mutate request is made.


 Started DELETE "/vmeet/api/v1/sessions/signout.json" for 192.168.172.183 at 2025-03-13 10:19:51 +0530
.
.
Completed 200 OK in 21ms (Views: 1.3ms | ActiveRecord: 9.5ms (1 query, 0 cached) | GC: 0.4ms)
Started DELETE "/vmeet/api/v1/sessions/signout.json" for 192.168.172.183 at 2025-03-12 14:13:09 +0530
.
.
Filter chain halted as :ensure_authenticated rendered or redirected
Completed 401 Unauthorized in 10ms (Views: 1.6ms | ActiveRecord: 1.0ms (1 query, 0 cached) | GC: 0.0ms)

My Question -

  1. I dont know why two times there is this api call.
  2. Following this i see another log which is an api call to /vmeet/installHook.js.map

here is the log

GET "/vmeet/installHook.js.map" for 192.168.172.183 at 2025-03-13 10:19:51 +0530
Cannot render console from 192.168.172.183! Allowed networks: 127.0.0.0/127.255.255.255, ::1
Processing by ComponentsController#index as */*
  Parameters: {"path"=>"installHook.js"}
  Rendering layout layouts/application.html.erb
  Rendering components/index.html.erb within layouts/application
  Rendered components/index.html.erb within layouts/application (Duration: 0.8ms | GC: 0.0ms)
  SiteSetting Count (1.8ms)  SELECT COUNT(*) FROM (SELECT DISTINCT "site_settings"."id" FROM "site_settings" LEFT OUTER JOIN "settings" "setting" ON "setting"."id" = "site_settings"."setting_id" WHERE "site_settings"."provider" = $1 AND "setting"."name" = $2) subquery_for_count  [["provider", "greenlight"], ["name", "BrandingImage"]]
  ↳ app/services/setting_getter.rb:36:in `call'
  SQL (1.4ms)  SELECT "site_settings"."id" AS t0_r0, "site_settings"."setting_id" AS t0_r1, "site_settings"."value" AS t0_r2, "site_settings"."provider" AS t0_r3, "site_settings"."created_at" AS t0_r4, "site_settings"."updated_at" AS t0_r5, "setting"."id" AS t1_r0, "setting"."name" AS t1_r1, "setting"."created_at" AS t1_r2, "setting"."updated_at" AS t1_r3 FROM "site_settings" LEFT OUTER JOIN "settings" "setting" ON "setting"."id" = "site_settings"."setting_id" WHERE "site_settings"."provider" = $1 AND "setting"."name" = $2  [["provider", "greenlight"], ["name", "BrandingImage"]]
  ↳ app/services/setting_getter.rb:41:in `map'
  ActiveStorage::Attachment Load (0.8ms)  SELECT "active_storage_attachments".* FROM "active_storage_attachments" WHERE "active_storage_attachments"."record_id" = $1 AND "active_storage_attachments"."record_type" = $2 AND "active_storage_attachments"."name" = $3 LIMIT $4  [["record_id", "f71d596c-d144-4782-9e65-3daa16f7db46"], ["record_type", "SiteSetting"], ["name", "image"], ["LIMIT", 1]]
  ↳ app/services/setting_getter.rb:55:in `transform_value'
  Rendered layout layouts/application.html.erb (Duration: 31.8ms | GC: 2.6ms)
Completed 200 OK in 37ms (Views: 31.7ms | ActiveRecord: 3.9ms (3 queries, 0 cached) | GC: 2.6ms)

rautniraj avatar Mar 13 '25 05:03 rautniraj