Giter Site home page Giter Site logo

切换环境失败问题 about nohost HOT 3 OPEN

linliyuan avatar linliyuan commented on June 12, 2024
切换环境失败问题

from nohost.

Comments (3)

avwo avatar avwo commented on June 12, 2024

看下 nohost 管理后台 / Whistle / Online 的 CPU 和内存使用情况。

from nohost.

linliyuan avatar linliyuan commented on June 12, 2024

后台是比较正常的,而且其他人访问没有问题,就只有一台电脑出现了,不是先记录用户环境,再请求成功的吗?
看着目前是请求成功(访问到测试环境),再记录用户环境

image

from nohost.

linliyuan avatar linliyuan commented on June 12, 2024

排查到跟nohost-client有关,背景是目前我们nohost有存在外网访问的场景,之前会导致大家出口ip是同一个而互相干扰环境选择,于是在代理插件 whistle.proxy-settings-hw 上增加了逻辑获取本地的ip作为唯一标识传入到 reqHeaders://(x-whistle-client-id=xxxx) 请求头中,代码如下:
image

但是后台抓包日志看到是没有clienId,抓包工具由 autosave 修改,应该不会出错。觉得有如下两种可能,大佬也帮忙看下两个中是否有问题:

  1. nohost服务端解析clientId功能有问题
  2. client代理时没有把请求头加上

当前解决方案,临时在nohost服务端拦截身份标识丢失的请求:
image

from nohost.

Related Issues (20)

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.