为什么我的带有graphQL的php代码出现500错误?

问题描述

我进行了此更改,使我可以在MongoDB的集合内插入客户端。 当我创建函数时,PHP抛出错误500。 这对我来说很奇怪,因为它是在我编写函数时发生的,而不是在我调用它时发生的

函数是:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
from bs4 import BeautifulSoup
import time

url = 'https://www.aodour.pk/brand/hemani'
driver.get(url)
time.sleep(30) #for loading the page properly
html_js     = driver.page_source

#driver.find_element_by_tag_name('body').send_keys(Keys.ESCAPE)
#I tried to skip the AD but didn't know why not it skip the AD

driver.get(url) #try to reload the page again (for skipped the Ad)
time.sleep(30)
soup         = BeautifulSoup(html_js,'html.parser')

解决方法

找出原因。我在?string $token = null

处犯了一个愚蠢的语法错误

不需要问号。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...