http 트리거 기능이 있는데 URL에 메시지를 보낼 때 필요에 따라 queuestorage에 데이터를 기록합니다.
http://localhost:7071/api/xxxx?message=89000
그러나 함수 URL에서 하늘빛에서 똑같이 할 때
https://yyyyy.azurewebsites.net/api/xxxx?message=89000
아무것도 기록되지 않습니다.
이 문제를 어떻게 해결할 수 있습니까?
다른 질문; 기본 코드는
import logging
import azure.functions as func
def main(req: func.HttpRequest,msg: func.Out[str]) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')
input_msg = req.params.get('message')
logging.info(input_msg)
msg.set(input_msg)
return func.HttpResponse(
"This is a test.",
status_code=200
)
다음 페이로드를 수신 할 것으로 예상됩니다.
{
"layerId":0,
"serviceName": "myService",
"changeType": "FeaturesCreated",
"orgId": "myorgId"
"changesUrl": "https://olserver/services/myService/FeatureService/extractChanges?serverGens=[1122, 1124]"
}
내가 할 http://localhost:7071/api/xxxx?message=89000
때,이 페이로드가 전달 될 때가 아니라 큐 스토리지를 잘 기록합니다. 어떻게 구성 할 수 있습니까?
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다