Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid parameter "chatId" #53

Open
nnhiep opened this issue Apr 1, 2020 · 2 comments
Open

Invalid parameter "chatId" #53

nnhiep opened this issue Apr 1, 2020 · 2 comments

Comments

@nnhiep
Copy link

nnhiep commented Apr 1, 2020

I tried using chaId to send multiple groups. The syntax is as below.
telegramSend(message: 'Test', chatId: xxxx)
I have received the error: Invalid parameter "chatId".
who can help me?

@nnhiep nnhiep closed this as completed Apr 2, 2020
@nnhiep nnhiep reopened this Apr 2, 2020
@ghost
Copy link

ghost commented May 26, 2020

@nnhiep I think it should be chat_id instead of chatId since TelegramBots is favoring snake case deserialization.

@4n70w4
Copy link

4n70w4 commented Jan 25, 2021

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 84: Invalid parameter "chat_id", did you mean "chatId"? @ line 84, column 84.
   AME} ${JOB_NAME} ${JOB_URL}', chat_id: -
                                 ^

WorkflowScript: 98: Invalid parameter "chat_id", did you mean "chatId"? @ line 98, column 83.
   AME} ${JOB_NAME} ${JOB_URL}', chat_id: -
                                 ^

2 errors

	at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
	at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085)
	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
	at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
	at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142)
	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127)
	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:571)
	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:523)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:337)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants