forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

500 Internal Server Error #38

Closed monirkohi2006 closed 4 years ago

monirkohi2006 commented 4 years ago

Describe the bug I just started getting 'transport.js:32 POST http://localhost:3333/api/apex/execute 500 (Internal Server Error)' while fetching data from apex method.

Error returned from server: originalTarget: body: message: "apex://OpportunityController: No apex action available for OpportunityController.getOptyDetails" proto: Object ok: false status: 400 statusText: "Bad Request"

!!! Note that I am not getting this error developing/running in the Sandbox !!!

To Reproduce Steps to reproduce the behavior: Make a request to fetch data from ApexController.ApexMethod through @wire service. EX Payload:

import getOptyDetails from '@salesforce/apex/OpportunityController.getOptyDetails'; recordId = 'some_id'; @wire(getOptyDetails, { optyId: '$recordId' }) wiredOpportunityRecord({ error, data }) {

Dev Console View: {"namespace":"","classname":"OpportunityController","method":"getOptyDetails","params":{"Id":"some_id"},"cacheable":true}

Expected behavior This has been working just fine up until now. Receive data through @wire service.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

monirkohi2006 commented 4 years ago

'sfdx plugins:update' seems to have resolved the issue.