question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action server is not responding (status code 500)

See original GitHub issue

Rasa version:13.3

Python version: 3.6

Operating system (windows, osx, …):Windows 10

Issue: during the interactive training I try to run action_weather after I gave it the input text ‘what is the weather like in Italy?’

image

it does not look like it is failing but it seems like it is in the infinite loop or something because it is not returning anything

image

it is just not doing anything i am confused whether what can cause this issue

**Content of actions.py **:

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

from rasa_core.actions import Action
# from rasa_core_sdk import Action
# from rasa_core_sdk.events import SlotSet

from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet

#from WeatherAPIXU.client

class ActionWeather(Action):
    def name(self):
        return 'action_weather'

    def run(self, dispatcher, tracker, domain):
        from apixu.client import ApixuClient
        api_key = '333'  # your apixu key
        client = ApixuClient(api_key)

        loc = tracker.get_slot('location')
        current = client.getcurrent(q=loc)

        country = current['location']['country']
        city = current['location']['name']
        condition = current['current']['condition']['text']
        temperature_c = current['current']['temp_c']
        humidity = current['current']['humidity']
        wind_mph = current['current']['wind_mph']

        response = """It is currently {} in {} at the moment. The temperature is {} degrees, the humidity is {}% and the wind speed is {} mph.""".format(
            condition, city, temperature_c, humidity, wind_mph)

        dispatcher.utter_message(response)
        return [SlotSet('location', loc)]


class ActionScheduleMeeting(Action):
    def name(self):
        return 'action_schedule_meeting'

    def run(self, dispatcher, tracker, domain):
        print('scheduling meeting is completed! ')
        pass


class ActionShowMeeting(Action):
    def name(self):
        return 'action_show_meeting'

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message('Here is the meeting information!')
        return []

Content of domain file (domain.yml) (if used & relevant):

intents:
    - schedule_meeting
    - search_for_meeting
    - greet
    - inform
    - goodbye

entities:
    - meeting
    - time
    - location

slots:
    location:
         type: text
    time:
         type: text
    meeting:
         type: text

templates:
    utter_greet:
        - 'Hello, how can I help you?'
        - 'Hi, I am here to help.'
    utter_goodbye:
        - 'Talk to you later.'
        - 'Bye bye :('
    utter_ask_meeting_time:
        - 'What time would you like me to schedule your meeting?'
    utter_ask_location:
        - 'In what location?'
actions:
    - utter_greet
    - utter_goodbye
    - utter_ask_meeting_time
    - utter_ask_location
    - actions.ActionShowMeeting
    - actions.ActionWeather

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:27 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
paulaWesselmanncommented, Apr 28, 2019

Awesome so there is no rasa issue! I’m glad we solved this now. Since this is an issue with your usage of the apixu I recommend checking out: https://github.com/apixu/apixu-python and https://www.apixu.com/doc/getting-started.aspx Good luck!

0reactions
pratikh07commented, Aug 10, 2019

I will close this issue here since this is a usage issue and not a code issue. Please still let me know in here if this worked for you. For further questions you can use the Rasa forum.

AttributeError: ‘ApixuClient’ object has no attribute ‘getcurrent’

please help me mam

Read more comments on GitHub >

github_iconTop Results From Across the Web

500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.
Read more >
What Is a "500 Internal Server Error" and How Do I Fix It?
This error means there is a problem on the server side. A server error can be caused by any number of things from...
Read more >
How to Fix a 500 Internal Server Error on Your WordPress Site
The 500 Internal Server Error status code occurs when the server encounters an error that prevents it from fulfilling the request.
Read more >
How to fix HTTP 500 internal server error? - IONOS
Using status codes, the web server tells an internet user's browser (client) whether a request (i.e. accessing a website) was successful or not....
Read more >
How to Fix a 500 Internal Server Error - Lifewire
The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the website's server, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found