pages functions The server running locally is abnormal 500

I started pages functions locally through wrangler, which sends an http request and returns 500 to the local server when it runs, but it worked when I deployed it to a remote server. Does anyone know why?

Local access function can not access the Internet, just like kv local operation can only access local kv,right?
Was this page helpful?