wechat-miniprogram / wechat-miniprogram/miniprogram-demo

云调用-服务端调用-发送模板接口错误addTemplate

Open
#22 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.2k
Forks
2.2k
Avg merge
10h 34m
Merged PRs (30d)
2

Description

serverapi.js? [sm]:40 [云函数] [openapi] templateMessage.send 调用失败: Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 4280390d-df7a-11e9-af3a-525400192d0e, cloud function service error code -504002, error message errCode: -501001 resource system error | errMsg: openapi.templateMessage.addTemplate:fail source.on is not a function; at openapi.templateMessage.addTemplate api; ; at cloud.callFunction api;
at new u ([publib]:1)
at d ([publib]:1)
at f ([publib]:1)
at t ([publib]:1)
at t ([publib]:1)
at eval ([publib]:1)
at e ([publib]:1)
at e.exports ([publib]:1)
at y.(:40489/remote-debug/anonymous function) (debug:///[publib]:1:46172)
at Number.r ([publib]:1)


Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in serverapi.js around line 40 and inspect the cloud function call that reaches openapi.templateMessage.addTemplate. Reproduce the reported source.on is not a function error and compare the call inputs with the expected addTemplate interface. Done means the templateMessage.send call completes without the reported cloud function error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.