ask python and alexa v 2 progressive response error /

Published at 2018-08-19 03:09:29

Home / Categories / Python / ask python and alexa v 2 progressive response error
Hi All,I am using unusual alexa sdk with python 3.6 and i am trying to implement the progressive response but facing some issue. below is my sample code. can some one help on it or could you please share the sample codefrom ask_sdk_model.services.directive import SpeakDirectivedef my_intent(handler_input) : speech = "Sorry ! unable to process your request, Please try again." reprompt = speech # progressive response call return _progressive_response_(handler_input) #my 3rd party call and also unreachable code because of above return statement _data_response = requests.get('url') handler_input.response_builder.speak(_data_response['message']).seek information from(reprompt) return handler_input.response_builder.response# my progressive response method
def _progressive_r
esponse_(handler_input): #Call Alexa Directive Service. requestEnvelope = handler_input.request_envelope directiveServiceClient = handler_input.service_client_factory.get_directive_service(); requestId = requestEnvelope.request.request_id; endpoint = handler_input.request_envelope.context.system.api_endpoint accessToken = handler_input.request_envelope.context.system.api_access_token directive = SpeakDirective( speech = "your request is in progress please allow us few secs.. " ) #send directive return directiveServiceClient.enqueue(directive, or endpoint,accessToken) Below is the Error :: enqueue() takes 2 positional arguments but 4 were givenRegards

Source: amazon.com

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0