chathub icon indicating copy to clipboard operation
chathub copied to clipboard

Cannot read properties of undefined (reading 'value')

Open kingsley0130 opened this issue 1 year ago • 42 comments

it shows "Cannot read properties of undefined (reading 'value')",don't know why

kingsley0130 avatar Mar 24 '23 01:03 kingsley0130

what version are you using?

wong2 avatar Mar 24 '23 01:03 wong2

what version are you using?

1.6.0

kingsley0130 avatar Mar 24 '23 01:03 kingsley0130

what version are you using?

This is also the case with version 1.8

PlusOneToX avatar Mar 24 '23 01:03 PlusOneToX

what version are you using?

1.8的chrome扩展也遇到这个问题了,1.7的时候正常的 bing的会提示这个,chatGPT正常 抱歉,装回1.7版本 bing也有这个提示

HailPHP avatar Mar 24 '23 01:03 HailPHP

i use the 1.6 version

At 2023-03-24 09:39:13, "YJXS-J" @.***> wrote:

what version are you using?

This is also the case with version 1.8

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kingsley0130 avatar Mar 24 '23 01:03 kingsley0130

i use the 1.6 version At 2023-03-24 09:39:13, "YJXS-J" @.> wrote: what version are you using? This is also the case with version 1.8 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

v1.8,It was about the same time

PlusOneToX avatar Mar 24 '23 01:03 PlusOneToX

v1.7 does not work

0xadu avatar Mar 24 '23 01:03 0xadu

does anyone knows how to solve the problem?

kingsley0130 avatar Mar 24 '23 01:03 kingsley0130

v1.8

zl2103 avatar Mar 24 '23 02:03 zl2103

V1.6.0 the same problem

hionedrop avatar Mar 24 '23 02:03 hionedrop

Cannot read properties of undefined (reading 'value')

hionedrop avatar Mar 24 '23 02:03 hionedrop

1.6同样问题,同时我之前edge的侧边栏正常使用,今天也出现了"Sorry, looks like your network settings are preventing access to this feature.",使用网上的重置设置这些都没有用,我没有header editor等类型插件,使用的是魔法,但是依旧出现问题,感觉bing更新了对地区限制的手段。

michaeledi avatar Mar 24 '23 02:03 michaeledi

魔法上网,也出现了:“Sorry, looks like your network settings are preventing access to this feature.”

NebulaTZL avatar Mar 24 '23 02:03 NebulaTZL

1.8遇到了同样的问题,魔法开全局一样不行,在官方页面开启聊天会提示“Sorry, looks like your network settings are preventing access to this feature”

user2318 avatar Mar 24 '23 02:03 user2318

Same problem in 1.6.0

UCPRER avatar Mar 24 '23 02:03 UCPRER

image image

zhoukuncheng avatar Mar 24 '23 02:03 zhoukuncheng

刚才在美国的远程主机上进行了测试,发现插件和bing都可以正常使用: image 已经基本可以证实不是插件本身问题,而是bing服务升级了对地区的判断方式,导致了服务在境内无法使用了。

michaeledi avatar Mar 24 '23 02:03 michaeledi

+1,不用插件的话需要设置x-forwarded-for 为 1.1.1.1可以用,不然报错Sorry, looks like your network settings are preventing access to this feature.

i6941 avatar Mar 24 '23 02:03 i6941

用 Header Editor,导入json

{ "request": [ { "enable": true, "name": "bing-cn-to-www", "ruleType": "redirect", "matchType": "prefix", "pattern": "https://cn.bing.com";, "exclude": "", "group": "bing-redirect", "isFunction": false, "action": "redirect", "to": "https://www.bing.com"; } ], "sendHeader": [ { "enable": true, "name": "bing", "ruleType": "modifySendHeader", "matchType": "regexp", "pattern": "^http(s?)://www\.bing\.com/(.)", "exclude": "", "group": "bing-direct", "isFunction": false, "action": { "name": "x-forwarded-for", "value": "1.1.1.1" } } ], "receiveHeader": [], "receiveBody": [] } On Mar 24, 2023 at 11:04 +0800, Edi Weigh @.**>, wrote:

+1,不用插件的话需要设置x-forwarded-for 为 1.1.1.1可以用,不然报错Sorry, looks like your network settings are preventing access to this feature. @i6941 请问大佬,不用插件是在哪里设置x-forwarded-for 为 1.1.1.1啊? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

i6941 avatar Mar 24 '23 04:03 i6941

Cannot read properties of undefined (reading 'value')

llccool1 avatar Mar 24 '23 04:03 llccool1

用HeadEditor改成1.1.1.1后,网页可以正常使用bing,但插件还是不行

limboking avatar Mar 24 '23 04:03 limboking

楼上提供的json怎么有很多奇怪的分号

加这一条就行了:

{
    "sendHeader": [
        {
            "enable": true,
            "name": "bing add x-forwarded-for",
            "ruleType": "modifySendHeader",
            "matchType": "regexp",
            "pattern": "^https?://www\\.bing\\.com/.*",
            "exclude": "",
            "isFunction": false,
            "action": {
                "name": "x-forwarded-for",
                "value": "1.1.1.1"
            }
        }
    ]
}

fireattack avatar Mar 24 '23 05:03 fireattack

v1.8.1 same problem Cannot read properties of undefined (reading 'value')

ider-zh avatar Mar 24 '23 06:03 ider-zh

v1.8.1 same problem Cannot read properties of undefined (reading 'value') 应该是国内访问bing的问题,提示Sorry, looks like your network settings are preventing access to this feature.

qiaozhiyong avatar Mar 24 '23 07:03 qiaozhiyong

clash配置下规则就行了

Andy-Dufresne1994 avatar Mar 24 '23 07:03 Andy-Dufresne1994

刚才在美国的远程主机上进行了测试,发现插件和bing都可以正常使用: image 已经基本可以证实不是插件本身问题,而是bing服务升级了对地区的判断方式,导致了服务在境内无法使用了。

Edit: 使用header-editor更改x-forwarded-for 为 1.1.1.1可以用,不过仅限网页版,插件和Edge右上角按钮依旧无法解决。目前比较有效的可能是下面提到的方式,供参考(把 bing.com 的流量也和 openai 一样转发到 cloudflare warp 的出口就可以用了,推测也是封了很多服务器 IP): https://www.v2ex.com/t/926788 https://github.com/fscarmen/warp

michaeledi avatar Mar 24 '23 07:03 michaeledi

image `chathub/src/app/bots/bing /api.ts` 文件中加上 `x-forwarded-for: 1.1.1.1` 不知道是否可行,前端水平不行不会打包,会的朋友可以试试

Wooden-Robot avatar Mar 24 '23 07:03 Wooden-Robot

chathub.zip 搜索打包后的源码加上了,已测可用

Wooden-Robot avatar Mar 24 '23 08:03 Wooden-Robot

我待会改下发个包

wong2 avatar Mar 24 '23 08:03 wong2

这样是不是不翻墙也可以用了?

wong2 avatar Mar 24 '23 08:03 wong2